Interface LootPoolEntry

All Known Implementing Classes:
LootPoolSingletonContainer.EntryBase

public interface LootPoolEntry
A loot pool entry generates zero or more stacks of items based on the LootContext. Each loot pool entry has a weight that determines how likely it is to be generated within a given loot pool.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    createItemStack(Consumer<ItemStack> pStackConsumer, LootContext pLootContext)
    Generate the loot stacks of this entry.
    int
    getWeight(float pLuck)
    Gets the effective weight based on the loot entry's weight and quality multiplied by looter's luck.
  • Method Details

    • getWeight

      int getWeight(float pLuck)
      Gets the effective weight based on the loot entry's weight and quality multiplied by looter's luck.
    • createItemStack

      void createItemStack(Consumer<ItemStack> pStackConsumer, LootContext pLootContext)
      Generate the loot stacks of this entry. Contrary to the method name this method does not always generate one stack, it can also generate zero or multiple stacks.