Class LootTable
java.lang.Object
net.minecraft.world.level.storage.loot.LootTable
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate BiFunction<ItemStack,LootContext,ItemStack>
static LootContextParamSet
static LootTable
(package private) LootItemFunction[]
private boolean
(package private) static org.apache.logging.log4j.Logger
private ResourceLocation
(package private) LootContextParamSet
-
Constructor Summary
ConstructorDescriptionLootTable(LootContextParamSet p_79114_, LootPool[] p_79115_, LootItemFunction[] p_79116_)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
private void
createStackSplitter(Consumer<ItemStack> p_79143_)
void
fill(Container p_79124_, LootContext p_79125_)
void
freeze()
getAvailableSlots(Container p_79127_, Random p_79128_)
getRandomItems(LootContext p_79130_)
void
getRandomItems(LootContext p_79149_, Consumer<ItemStack> p_79150_)
Deprecated.void
getRandomItemsRaw(LootContext p_79132_, Consumer<ItemStack> p_79133_)
boolean
isFrozen()
static LootTable.Builder
removePool(String name)
void
private void
shuffleAndSplitItems(List<ItemStack> p_79139_, int p_79140_, Random p_79141_)
void
validate(ValidationContext p_79137_)
-
Field Details
-
LOGGER
static final org.apache.logging.log4j.Logger LOGGER -
EMPTY
-
DEFAULT_PARAM_SET
-
paramSet
-
pools
-
functions
-
compositeFunction
-
isFrozen
private boolean isFrozen -
lootTableId
-
-
Constructor Details
-
LootTable
LootTable(LootContextParamSet p_79114_, LootPool[] p_79115_, LootItemFunction[] p_79116_)
-
-
Method Details
-
createStackSplitter
-
getRandomItemsRaw
-
getRandomItems
Deprecated. -
getRandomItems
-
getParamSet
-
validate
-
fill
-
shuffleAndSplitItems
-
getAvailableSlots
-
lootTable
-
freeze
public void freeze() -
isFrozen
public boolean isFrozen() -
checkFrozen
private void checkFrozen() -
setLootTableId
-
getLootTableId
-
getPool
-
removePool
-
addPool
-