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
ConstructorsConstructorDescriptionCustomLootItem(LootTable lootTable, String itemID, int weight, String amount) -
Method Summary
Modifier and TypeMethodDescriptionvoidconstructItem(org.bukkit.configuration.ConfigurationSection configurationSection)This is called whenConfigLootTableprocesses a custom loot item.org.bukkit.inventory.ItemStackThe 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:ConfigLootItemThis is called whenConfigLootTableprocesses a custom loot item.- Specified by:
constructItemin classConfigLootItem- Parameters:
configurationSection- The configuration section of the loot item.
-
getItemStack
public org.bukkit.inventory.ItemStack getItemStack()Description copied from interface:LootItemThe ItemStack representation of the LootItem.- Returns:
- The ItemStack representation.
-