Enum Class GhostBlocks.Show
- All Implemented Interfaces:
Serializable, Comparable<GhostBlocks.Show>, Constable
- Enclosing class:
GhostBlocks
Where a ghost shows, against the world in front of it or behind it.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionEverywhere, over whatever is in front of it.Only where nothing in the world is in front of it, as a real block would be (a ghost of what is to be built).Only where something in the world is in front of it: seen through walls, and not over the real block where it is in plain sight (a ghost of something that is there, to find it). -
Method Summary
Modifier and TypeMethodDescriptionstatic GhostBlocks.ShowReturns the enum constant of this class with the specified name.static GhostBlocks.Show[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
THROUGH_WALLS
Only where something in the world is in front of it: seen through walls, and not over the real block where it is in plain sight (a ghost of something that is there, to find it). -
IN_WORLD
Only where nothing in the world is in front of it, as a real block would be (a ghost of what is to be built). -
ALWAYS
Everywhere, over whatever is in front of it.
-
-
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
-