java.lang.Object
net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer
net.minecraft.world.level.storage.loot.entries.LootPoolSingletonContainer
net.darkhax.bookshelf.common.impl.data.loot.entries.LootItemStack

public class LootItemStack extends net.minecraft.world.level.storage.loot.entries.LootPoolSingletonContainer
A LootPool entry type that produces copies of predefined ItemStack.
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.world.level.storage.loot.entries.LootPoolSingletonContainer

    net.minecraft.world.level.storage.loot.entries.LootPoolSingletonContainer.Builder<T extends net.minecraft.world.level.storage.loot.entries.LootPoolSingletonContainer.Builder<T>>, net.minecraft.world.level.storage.loot.entries.LootPoolSingletonContainer.EntryBase, net.minecraft.world.level.storage.loot.entries.LootPoolSingletonContainer.EntryConstructor
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.world.level.storage.loot.entries.ComposableEntryContainer
     
    static final net.minecraft.world.level.storage.loot.entries.ComposableEntryContainer
     
    static final com.mojang.serialization.MapCodec<LootItemStack>
     

    Fields inherited from class net.minecraft.world.level.storage.loot.entries.LootPoolSingletonContainer

    DEFAULT_QUALITY, DEFAULT_WEIGHT, functions, quality, weight

    Fields inherited from class net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer

    conditions
  • Method Summary

    Modifier and Type
    Method
    Description
    default net.minecraft.world.level.storage.loot.entries.ComposableEntryContainer
    and(net.minecraft.world.level.storage.loot.entries.ComposableEntryContainer arg0)
     
    protected void
    createItemStack(Consumer<net.minecraft.world.item.ItemStack> consumer, @NotNull net.minecraft.world.level.storage.loot.LootContext context)
     
    net.minecraft.world.item.ItemStack
     
    @NotNull net.minecraft.world.level.storage.loot.entries.LootPoolEntryType
     
    of(net.minecraft.world.item.ItemStack baseStack, int weight)
     
    of(net.minecraft.world.item.ItemStack baseStack, int weight, int quality, List<net.minecraft.world.level.storage.loot.predicates.LootItemCondition> conditions, List<net.minecraft.world.level.storage.loot.functions.LootItemFunction> functions)
     
    default net.minecraft.world.level.storage.loot.entries.ComposableEntryContainer
    or(net.minecraft.world.level.storage.loot.entries.ComposableEntryContainer arg0)
     

    Methods inherited from class net.minecraft.world.level.storage.loot.entries.LootPoolSingletonContainer

    expand, simpleBuilder, singletonFields, validate

    Methods inherited from class net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer

    canRun, commonFields

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • CODEC

      public static final com.mojang.serialization.MapCodec<LootItemStack> CODEC
    • ALWAYS_FALSE

      static final net.minecraft.world.level.storage.loot.entries.ComposableEntryContainer ALWAYS_FALSE
    • ALWAYS_TRUE

      static final net.minecraft.world.level.storage.loot.entries.ComposableEntryContainer ALWAYS_TRUE
  • Method Details

    • getBaseStack

      public net.minecraft.world.item.ItemStack getBaseStack()
    • createItemStack

      protected void createItemStack(Consumer<net.minecraft.world.item.ItemStack> consumer, @NotNull @NotNull net.minecraft.world.level.storage.loot.LootContext context)
      Specified by:
      createItemStack in class net.minecraft.world.level.storage.loot.entries.LootPoolSingletonContainer
    • getType

      @NotNull public @NotNull net.minecraft.world.level.storage.loot.entries.LootPoolEntryType getType()
      Specified by:
      getType in class net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer
    • of

      public static LootItemStack of(net.minecraft.world.item.ItemStack baseStack, int weight)
    • of

      public static LootItemStack of(net.minecraft.world.item.ItemStack baseStack, int weight, int quality, List<net.minecraft.world.level.storage.loot.predicates.LootItemCondition> conditions, List<net.minecraft.world.level.storage.loot.functions.LootItemFunction> functions)
    • and

      default net.minecraft.world.level.storage.loot.entries.ComposableEntryContainer and(net.minecraft.world.level.storage.loot.entries.ComposableEntryContainer arg0)
    • or

      default net.minecraft.world.level.storage.loot.entries.ComposableEntryContainer or(net.minecraft.world.level.storage.loot.entries.ComposableEntryContainer arg0)