Class DynamicEntry
java.lang.Object
net.minestom.server.gamedata.loottables.LootTable.Entry
net.minestom.server.gamedata.loottables.entries.DynamicEntry
- All Implemented Interfaces:
WeightedRandomItem
public class DynamicEntry extends LootTable.Entry
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DynamicEntry.Type
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DROP_LIST_KEY
-
Constructor Summary
Constructors Constructor Description DynamicEntry(DynamicType type, DynamicEntry.Type entryType, int weight, int quality, java.util.List<Condition> conditions)
-
Method Summary
Modifier and Type Method Description void
generate(java.util.List<ItemStack> output, Data arguments)
DynamicEntry.Type
getEntryType()
Methods inherited from class net.minestom.server.gamedata.loottables.LootTable.Entry
generateStacks, getConditions, getQuality, getType, getWeight
-
Field Details
-
DROP_LIST_KEY
public static final java.lang.String DROP_LIST_KEY- See Also:
- Constant Field Values
-
-
Constructor Details
-
DynamicEntry
public DynamicEntry(DynamicType type, DynamicEntry.Type entryType, int weight, int quality, java.util.List<Condition> conditions)
-
-
Method Details
-
generate
- Specified by:
generate
in classLootTable.Entry
-
getEntryType
-