Class ExpandRandomizableContainer

java.lang.Object
com.blamejared.crafttweaker.natives.world.ExpandRandomizableContainer

@ZenRegister public class ExpandRandomizableContainer extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.resources.ResourceKey<net.minecraft.world.level.storage.loot.LootTable>
    getLootTable(net.minecraft.world.RandomizableContainer internal)
    Gets the loot table used by the container.
    static long
    getLootTableSeed(net.minecraft.world.RandomizableContainer internal)
    Gets the seed used by the loot table.
    static void
    setLootTable(net.minecraft.world.RandomizableContainer internal, net.minecraft.resources.ResourceKey<net.minecraft.world.level.storage.loot.LootTable> lootTable)
    Sets the loot table used by the container.
    static void
    setLootTable(net.minecraft.world.RandomizableContainer internal, net.minecraft.resources.ResourceKey<net.minecraft.world.level.storage.loot.LootTable> lootTable, long seed)
    Sets the loot table used by the container.
    static void
    setLootTable(net.minecraft.world.RandomizableContainer internal, net.minecraft.resources.ResourceLocation lootTable)
    Sets the loot table used by the container.
    static void
    setLootTable(net.minecraft.world.RandomizableContainer internal, net.minecraft.resources.ResourceLocation lootTable, long seed)
    Sets the loot table used by the container.
    static void
    setLootTableSeed(net.minecraft.world.RandomizableContainer internal, long seed)
    Sets the seed used by the loot table.

    Methods inherited from class java.lang.Object

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

    • ExpandRandomizableContainer

      public ExpandRandomizableContainer()
  • Method Details

    • getLootTable

      public static net.minecraft.resources.ResourceKey<net.minecraft.world.level.storage.loot.LootTable> getLootTable(net.minecraft.world.RandomizableContainer internal)
      Gets the loot table used by the container.
      Returns:
      The loot table used by the container.
    • setLootTable

      public static void setLootTable(net.minecraft.world.RandomizableContainer internal, net.minecraft.resources.ResourceKey<net.minecraft.world.level.storage.loot.LootTable> lootTable)
      Sets the loot table used by the container.
      Parameters:
      lootTable - The new loot table for the container to use.
    • setLootTable

      public static void setLootTable(net.minecraft.world.RandomizableContainer internal, net.minecraft.resources.ResourceKey<net.minecraft.world.level.storage.loot.LootTable> lootTable, long seed)
      Sets the loot table used by the container.
      Parameters:
      lootTable - The new loot table for the container to use.
      seed - The seed for the loot table to use.
    • setLootTable

      public static void setLootTable(net.minecraft.world.RandomizableContainer internal, net.minecraft.resources.ResourceLocation lootTable)
      Sets the loot table used by the container.
      Parameters:
      lootTable - The new loot table for the container to use.
    • setLootTable

      public static void setLootTable(net.minecraft.world.RandomizableContainer internal, net.minecraft.resources.ResourceLocation lootTable, long seed)
      Sets the loot table used by the container.
      Parameters:
      lootTable - The new loot table for the container to use.
      seed - The seed for the loot table to use.
    • getLootTableSeed

      public static long getLootTableSeed(net.minecraft.world.RandomizableContainer internal)
      Gets the seed used by the loot table.
      Returns:
      The seed used by the loot table.
    • setLootTableSeed

      public static void setLootTableSeed(net.minecraft.world.RandomizableContainer internal, long seed)
      Sets the seed used by the loot table.
      Parameters:
      seed - The seed for the loot table to use.