Enum Class IRegion.DefaultVectorStrategy

java.lang.Object
java.lang.Enum<IRegion.DefaultVectorStrategy>
com.marcusslover.plus.lib.region.IRegion.DefaultVectorStrategy
All Implemented Interfaces:
IRegion.IVectorStrategy, Serializable, Comparable<IRegion.DefaultVectorStrategy>, Constable
Enclosing interface:
IRegion

public static enum IRegion.DefaultVectorStrategy extends Enum<IRegion.DefaultVectorStrategy> implements IRegion.IVectorStrategy
All default strategies for the vector check.
  • Enum Constant Details

  • Method Details

    • values

      public static IRegion.DefaultVectorStrategy[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static IRegion.DefaultVectorStrategy valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • within

      public boolean within(org.bukkit.util.Vector vector, org.bukkit.util.Vector min, org.bukkit.util.Vector max)
      Description copied from interface: IRegion.IVectorStrategy
      Check if the given vector is within the region.
      Specified by:
      within in interface IRegion.IVectorStrategy
      Parameters:
      vector - The vector to check.
      min - The minimum vector.
      max - The maximum vector.
      Returns:
      True if the vector is within the region.