Class AbstractLootData
java.lang.Object
ru.cwcode.tkach.config.paper.data.item.loot.AbstractLootData
- All Implemented Interfaces:
RepositoryEntry<String>
- Direct Known Subclasses:
ItemStackLootData,MaterialLootData
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
id
-
chance
protected double chance -
min
protected int min -
max
protected int max -
randomize
protected boolean randomize
-
-
Constructor Details
-
AbstractLootData
-
AbstractLootData
public AbstractLootData()
-
-
Method Details
-
getItem
public abstract org.bukkit.inventory.ItemStack getItem() -
getKey
- Specified by:
getKeyin interfaceRepositoryEntry<String>
-
testChance
public boolean testChance() -
setKey
-
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)
-