Class LootBuilders

java.lang.Object
org.moddingx.libx.datagen.loot.LootBuilders

public class LootBuilders extends Object
Contains builders vor various loot table entry containers.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer.Builder<?>
    all(List<net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer.Builder<?>> entries)
    Gets a loot builder for a loot entry that selects all items fro mall its children at once.
    static net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer.Builder<?>
    alternative(List<net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer.Builder<?>> entries)
    Gets a loot builder for alternative loot.
    static net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer.Builder<?>
    group(List<net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer.Builder<?>> entries)
    Gets a loot builder for group loot.
    static net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer.Builder<?>
    sequence(List<net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer.Builder<?>> entries)
    Gets a loot builder for sequence loot.

    Methods inherited from class java.lang.Object

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

    • LootBuilders

      public LootBuilders()
  • Method Details

    • all

      public static net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer.Builder<?> all(List<net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer.Builder<?>> entries)
      Gets a loot builder for a loot entry that selects all items fro mall its children at once.
    • group

      public static net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer.Builder<?> group(List<net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer.Builder<?>> entries)
      Gets a loot builder for group loot.
    • alternative

      public static net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer.Builder<?> alternative(List<net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer.Builder<?>> entries)
      Gets a loot builder for alternative loot.
    • sequence

      public static net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer.Builder<?> sequence(List<net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer.Builder<?>> entries)
      Gets a loot builder for sequence loot.