Enum Class BlockRelocability.Yes

java.lang.Object
java.lang.Enum<BlockRelocability.Yes>
net.neoforged.neoforge.common.util.BlockRelocability.Yes
All Implemented Interfaces:
Serializable, Comparable<BlockRelocability.Yes>, Constable, BlockRelocability
Enclosing interface:
BlockRelocability

public static enum BlockRelocability.Yes extends Enum<BlockRelocability.Yes> implements BlockRelocability
BlockRelocability indicating some block is currently agreeing to be moved
  • Enum Constant Details

  • Constructor Details

    • Yes

      private Yes()
  • Method Details

    • values

      public static BlockRelocability.Yes[] 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 BlockRelocability.Yes 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
    • isRelocatable

      public boolean isRelocatable(Set<BlockPos> relocatingPositions)
      Description copied from interface: BlockRelocability
      Returns true if the block is relocatable from a given Set of block positions, false otherwise.
      Specified by:
      isRelocatable in interface BlockRelocability
      Parameters:
      relocatingPositions - Set of positions blocks are being relocated from
      Returns:
      true if the block is relocatable from a given Set of block positions, false otherwise