Enum Class 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
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Nested classes/interfaces inherited from interface BlockRelocability
BlockRelocability.Multiblock, BlockRelocability.No, BlockRelocability.Yes -
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisRelocatable(Set<BlockPos> relocatingPositions) Returns true if the block is relocatable from a given Set of block positions, false otherwise.static BlockRelocability.YesReturns the enum constant of this class with the specified name.static BlockRelocability.Yes[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
Singleton instance
-
-
Constructor Details
-
Yes
private Yes()
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
isRelocatable
Description copied from interface:BlockRelocabilityReturns true if the block is relocatable from a given Set of block positions, false otherwise.- Specified by:
isRelocatablein interfaceBlockRelocability- 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
-