Interface LootPoolEntryDescriber

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface LootPoolEntryDescriber
Describes the potential items that a loot pool entry can generate. See LootPoolEntryDescriptions for usage.
  • Method Summary

    Modifier and Type
    Method
    Description
    Optional<List<net.minecraft.world.item.ItemStack>>
    getPotentialDrops(@NotNull net.minecraft.core.RegistryAccess registries, @NotNull net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer entry)
    Generates a list of potential items that can be produced by the loot pool entry.
  • Method Details

    • getPotentialDrops

      Optional<List<net.minecraft.world.item.ItemStack>> getPotentialDrops(@NotNull @NotNull net.minecraft.core.RegistryAccess registries, @NotNull @NotNull net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer entry)
      Generates a list of potential items that can be produced by the loot pool entry.
      Parameters:
      registries - The current reloadable game registries.
      entry - The loot pool entry to be analyzed.
      Returns:
      An optional list of items that can be produced by the entry. If the describer can not handle the provided entry type it will be empty.