Enum Class RemovalStrategy

java.lang.Object
java.lang.Enum<RemovalStrategy>
com.sk89q.worldguard.protection.managers.RemovalStrategy
All Implemented Interfaces:
Serializable, Comparable<RemovalStrategy>, Constable

public enum RemovalStrategy extends Enum<RemovalStrategy>
Determines the strategy regarding child regions when regions are removed from a RegionIndex.
  • Enum Constant Details

    • UNSET_PARENT_IN_CHILDREN

      public static final RemovalStrategy UNSET_PARENT_IN_CHILDREN
      Unset the parent in children regions.
    • REMOVE_CHILDREN

      public static final RemovalStrategy REMOVE_CHILDREN
      Remove any children under the removed regions. This includes sub-children, etc.
  • Method Details

    • values

      public static RemovalStrategy[] 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 RemovalStrategy 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