Package com.cryptomorin.xseries
Enum XBlock.BlockMaterial
- java.lang.Object
-
- java.lang.Enum<XBlock.BlockMaterial>
-
- com.cryptomorin.xseries.XBlock.BlockMaterial
-
- All Implemented Interfaces:
Serializable,Comparable<XBlock.BlockMaterial>
- Enclosing class:
- XBlock
public static enum XBlock.BlockMaterial extends Enum<XBlock.BlockMaterial>
An enum with cached legacy materials which can be used when comparing blocks with blocks and blocks with items.- Since:
- 2.0.0
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static XBlock.BlockMaterialvalueOf(String name)Returns the enum constant of this type with the specified name.static XBlock.BlockMaterial[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CAKE_BLOCK
public static final XBlock.BlockMaterial CAKE_BLOCK
-
CROPS
public static final XBlock.BlockMaterial CROPS
-
SUGAR_CANE_BLOCK
public static final XBlock.BlockMaterial SUGAR_CANE_BLOCK
-
BEETROOT_BLOCK
public static final XBlock.BlockMaterial BEETROOT_BLOCK
-
NETHER_WARTS
public static final XBlock.BlockMaterial NETHER_WARTS
-
MELON_BLOCK
public static final XBlock.BlockMaterial MELON_BLOCK
-
BURNING_FURNACE
public static final XBlock.BlockMaterial BURNING_FURNACE
-
STATIONARY_WATER
public static final XBlock.BlockMaterial STATIONARY_WATER
-
STATIONARY_LAVA
public static final XBlock.BlockMaterial STATIONARY_LAVA
-
REDSTONE_LAMP_ON
public static final XBlock.BlockMaterial REDSTONE_LAMP_ON
-
REDSTONE_LAMP_OFF
public static final XBlock.BlockMaterial REDSTONE_LAMP_OFF
-
REDSTONE_TORCH_ON
public static final XBlock.BlockMaterial REDSTONE_TORCH_ON
-
REDSTONE_TORCH_OFF
public static final XBlock.BlockMaterial REDSTONE_TORCH_OFF
-
REDSTONE_COMPARATOR_ON
public static final XBlock.BlockMaterial REDSTONE_COMPARATOR_ON
-
REDSTONE_COMPARATOR_OFF
public static final XBlock.BlockMaterial REDSTONE_COMPARATOR_OFF
-
-
Method Detail
-
values
public static XBlock.BlockMaterial[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (XBlock.BlockMaterial c : XBlock.BlockMaterial.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static XBlock.BlockMaterial valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
-