Class ExpandRandomizableContainer
java.lang.Object
com.blamejared.crafttweaker.natives.world.ExpandRandomizableContainer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 longgetLootTableSeed(net.minecraft.world.RandomizableContainer internal) Gets the seed used by the loot table.static voidsetLootTable(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 voidsetLootTable(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 voidsetLootTable(net.minecraft.world.RandomizableContainer internal, net.minecraft.resources.ResourceLocation lootTable) Sets the loot table used by the container.static voidsetLootTable(net.minecraft.world.RandomizableContainer internal, net.minecraft.resources.ResourceLocation lootTable, long seed) Sets the loot table used by the container.static voidsetLootTableSeed(net.minecraft.world.RandomizableContainer internal, long seed) Sets the seed used by the loot table.
-
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.
-