Class LootEntry.ItemEntry
java.lang.Object
com.github.darksoulq.abyssallib.world.data.loot.LootEntry
com.github.darksoulq.abyssallib.world.data.loot.LootEntry.ItemEntry
- Enclosing class:
LootEntry
A loot entry that generates a specific item stack.
-
Nested Class Summary
Nested classes/interfaces inherited from class LootEntry
LootEntry.EmptyEntry, LootEntry.ItemEntry -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionItemEntry(org.bukkit.inventory.ItemStack stack, int weight, int quality, List<LootCondition> conditions, List<LootFunction> functions) -
Method Summary
Modifier and TypeMethodDescriptionvoidexpand(LootContext context, Consumer<org.bukkit.inventory.ItemStack> generator) Generates the actual content of the entry and passes it to the sink.
-
Constructor Details
-
ItemEntry
public ItemEntry(org.bukkit.inventory.ItemStack stack, int weight, int quality, List<LootCondition> conditions, List<LootFunction> functions)
-
-
Method Details
-
expand
Description copied from class:LootEntryGenerates the actual content of the entry and passes it to the sink.- Specified by:
expandin classLootEntry- Parameters:
context- The currentLootContext.generator- TheConsumerfor generated stacks.
-