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

public static class LootEntry.ItemEntry extends LootEntry
A loot entry that generates a specific item stack.
  • Constructor Details

  • Method Details

    • expand

      public void expand(LootContext context, Consumer<org.bukkit.inventory.ItemStack> generator)
      Description copied from class: LootEntry
      Generates the actual content of the entry and passes it to the sink.
      Specified by:
      expand in class LootEntry
      Parameters:
      context - The current LootContext.
      generator - The Consumer for generated stacks.