Class AbstractLootData

java.lang.Object
ru.cwcode.tkach.config.paper.data.item.loot.AbstractLootData
All Implemented Interfaces:
RepositoryEntry<String>
Direct Known Subclasses:
ItemStackLootData, MaterialLootData

public abstract class AbstractLootData extends Object implements RepositoryEntry<String>
  • Field Details

    • id

      protected String id
    • chance

      protected double chance
    • min

      protected int min
    • max

      protected int max
    • randomize

      protected boolean randomize
  • Constructor Details

    • AbstractLootData

      public AbstractLootData(String id)
    • AbstractLootData

      public AbstractLootData()
  • Method Details

    • getItem

      public abstract org.bukkit.inventory.ItemStack getItem()
    • getKey

      public String getKey()
      Specified by:
      getKey in interface RepositoryEntry<String>
    • testChance

      public boolean testChance()
    • setKey

      public void setKey(String id)
    • getChance

      public double getChance()
    • setChance

      public void setChance(double chance)
    • getMin

      public int getMin()
    • setMin

      public void setMin(int min)
    • getMax

      public int getMax()
    • setMax

      public void setMax(int max)
    • isRandomize

      public boolean isRandomize()
    • setRandomize

      public void setRandomize(boolean randomize)