Class LootEntry.EmptyEntry
java.lang.Object
com.github.darksoulq.abyssallib.world.data.loot.LootEntry
com.github.darksoulq.abyssallib.world.data.loot.LootEntry.EmptyEntry
- Enclosing class:
LootEntry
A loot entry that represents a "no drop" chance.
-
Nested Class Summary
Nested classes/interfaces inherited from class LootEntry
LootEntry.EmptyEntry, LootEntry.ItemEntry -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionEmptyEntry(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
-
EmptyEntry
public EmptyEntry(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.
-