Enum Class LootTableType
- All Implemented Interfaces:
Serializable
,Comparable<LootTableType>
,Constable
The type of a LootTable.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Check to see if a name exists in the enum.org.bukkit.Material
Get the material equivalent.static LootTableType
Returns the enum constant of this class with the specified name.static LootTableType
valueOf(org.bukkit.Material material)
Take a material and get the loot table type.static List<LootTableType>
valueOfList(String value)
Take a string and get a list of loot table types.static LootTableType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CHEST
-
FURNACE
-
HOPPER
-
BREWING_STAND
-
BARREL
-
TRAPPED_CHEST
-
DROPPER
-
DISPENSER
-
BLAST_FURNACE
-
SMOKER
-
SHULKER_BOX
-
BLACK_SHULKER_BOX
-
BLUE_SHULKER_BOX
-
BROWN_SHULKER_BOX
-
CYAN_SHULKER_BOX
-
GRAY_SHULKER_BOX
-
GREEN_SHULKER_BOX
-
LIGHT_BLUE_SHULKER_BOX
-
LIME_SHULKER_BOX
-
MAGENTA_SHULKER_BOX
-
ORANGE_SHULKER_BOX
-
PINK_SHULKER_BOX
-
PURPLE_SHULKER_BOX
-
RED_SHULKER_BOX
-
WHITE_SHULKER_BOX
-
YELLOW_SHULKER_BOX
-
-
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
-
getMaterial
public org.bukkit.Material getMaterial()Get the material equivalent.Note: If the block does not exist in the current version of Minecraft, than a CHEST is returned by default.
- Returns:
- The material
-
valueOfList
Take a string and get a list of loot table types.- Parameters:
value
- The string for the loot table list.- Returns:
- The list of the loot tables.
-
valueOf
Take a material and get the loot table type.- Parameters:
material
- The material.- Returns:
- The loot table type.
-
exists
Check to see if a name exists in the enum.- Parameters:
value
- The value.- Returns:
- If the enum name exists.
-