Class CustomLootItem

java.lang.Object
com.ryandw11.structure.loottables.ConfigLootItem
com.ryandw11.structure.loottables.customitems.CustomLootItem
All Implemented Interfaces:
LootItem

public class CustomLootItem extends ConfigLootItem
The built-in type of CUSTOM items.

To implement a custom item type, use ConfigLootItem.

  • Constructor Details

    • CustomLootItem

      public CustomLootItem(LootTable lootTable, String itemID, int weight, String amount)
  • Method Details

    • constructItem

      public void constructItem(org.bukkit.configuration.ConfigurationSection configurationSection)
      Description copied from class: ConfigLootItem
      This is called when ConfigLootTable processes a custom loot item.
      Specified by:
      constructItem in class ConfigLootItem
      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.