Enum Class BlockDataKey
- All Implemented Interfaces:
Serializable,Comparable<BlockDataKey>,Constable
Stores all
BlockData keys.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionStores theFaceAttachable.AttachedFaceaFaceAttachableis facingStores theBlockFaceaDirectionalblock is facing towards.Stores whatBisected.HalfaBisectedblock is placed in.Stores whether aLightableis list.Stores whether aBedis occupied.Stores whether aOpenableis open.Stores whether aPowerableis powered.Stores whatStairs.ShapeaStairsblock is.Stores whether aCampfireis a signal fire (hay block underneath).Stores whether aWaterloggedblock is waterlogged. -
Method Summary
Modifier and TypeMethodDescriptionbooleanappliesTo(BlockDataMock blockData) constructValue(String valueString) static @Nullable BlockDataKeystatic booleanisRegistered(String key) key()static BlockDataKeyReturns the enum constant of this class with the specified name.static BlockDataKey[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FACING
Stores theBlockFaceaDirectionalblock is facing towards. -
SIGNAL_FIRE
Stores whether aCampfireis a signal fire (hay block underneath). -
HALF
Stores whatBisected.HalfaBisectedblock is placed in. -
LIT
Stores whether aLightableis list. -
OCCUPIED
Stores whether aBedis occupied. -
OPEN
Stores whether aOpenableis open. -
PART
-
POWERED
Stores whether aPowerableis powered. -
SHAPE
Stores whatStairs.ShapeaStairsblock is. -
TYPE
-
WATERLOGGED
Stores whether aWaterloggedblock is waterlogged. -
FACE
Stores theFaceAttachable.AttachedFaceaFaceAttachableis facing -
AGE_KEY
-
LEAVES_KEY
-
STAGE_KEY
-
EAST
-
WEST
-
NORTH
-
SOUTH
-
UP
-
DOWN
-
-
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
-
key
-
isRegistered
-
fromKey
-
constructValue
-
appliesTo
-