Class LootPoolEntryDescriptions

java.lang.Object
net.darkhax.bookshelf.common.api.loot.LootPoolEntryDescriptions

public class LootPoolEntryDescriptions extends Object
Provides a system for describing what items can be dropped by a loot table.
  • Field Details

  • Constructor Details

    • LootPoolEntryDescriptions

      public LootPoolEntryDescriptions()
  • Method Details

    • getPotentialItems

      public static List<net.minecraft.world.item.ItemStack> getPotentialItems(@NotNull @NotNull net.minecraft.core.RegistryAccess registries, com.mojang.datafixers.util.Either<net.minecraft.resources.ResourceKey<net.minecraft.world.level.storage.loot.LootTable>,net.minecraft.world.level.storage.loot.LootTable> table)
      Gets a list of items that can be produced by a loot table.
      Parameters:
      registries - The current reloadable game registries.
      table - The loot table to analyze.
      Returns:
      A list of items that can be produced by the entry.
    • getPotentialItems

      public static List<net.minecraft.world.item.ItemStack> getPotentialItems(@NotNull @NotNull net.minecraft.core.RegistryAccess registries, net.minecraft.world.level.storage.loot.LootTable table)
      Gets a list of items that can be produced by a loot table.
      Parameters:
      registries - The current reloadable game registries.
      table - The loot table to analyze.
      Returns:
      A list of items that can be produced by the entry.
    • getPotentialItems

      public static List<net.minecraft.world.item.ItemStack> getPotentialItems(@NotNull @NotNull net.minecraft.core.RegistryAccess registries, List<net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer> entries)
      Gets a list of items that can be produced by a list of loot pool entries.
      Parameters:
      registries - The current reloadable game registries.
      entries - A list of loot pool entries to analyze.
      Returns:
      A list of items that can be produced by the entry.
    • getPotentialItems

      public static List<net.minecraft.world.item.ItemStack> getPotentialItems(@NotNull @NotNull net.minecraft.core.RegistryAccess registries, net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer entry)
      Gets a list of items that can be produced by a loot pool entry.
      Parameters:
      registries - The current reloadable game registries.
      entry - The loot pool entry to analyze.
      Returns:
      A list of items that can be produced by the entry.