Class CustomLootItem
java.lang.Object
com.ryandw11.structure.loottables.ConfigLootItem
com.ryandw11.structure.loottables.customitems.CustomLootItem
- All Implemented Interfaces:
LootItem
The built-in type of CUSTOM items.
To implement a custom item type, use ConfigLootItem
.
-
Constructor Summary
ConstructorDescriptionCustomLootItem(LootTable lootTable, String itemID, int weight, String amount)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
constructItem(org.bukkit.configuration.ConfigurationSection configurationSection)
This is called whenConfigLootTable
processes a custom loot item.org.bukkit.inventory.ItemStack
The ItemStack representation of the LootItem.Methods inherited from class com.ryandw11.structure.loottables.ConfigLootItem
getAmount, getItemID, getLootTable, getRawAmount, getWeight
-
Constructor Details
-
CustomLootItem
-
-
Method Details
-
constructItem
public void constructItem(org.bukkit.configuration.ConfigurationSection configurationSection)Description copied from class:ConfigLootItem
This is called whenConfigLootTable
processes a custom loot item.- Specified by:
constructItem
in classConfigLootItem
- Parameters:
configurationSection
- The configuration section of the loot item.
-
getItemStack
public org.bukkit.inventory.ItemStack getItemStack()Description copied from interface:LootItem
The ItemStack representation of the LootItem.- Returns:
- The ItemStack representation.
-