Enum Class BlockRelocability.No

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

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

  • Constructor Details

    • No

      private No()
  • Method Details

    • values

      public static BlockRelocability.No[] 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.No 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