Package net.minecraft.loot
Class LootTable
java.lang.Object
net.minecraft.loot.LootTable
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate final BiFunction<ItemStack,
LootContext, ItemStack> static final LootParameterSet
static final LootTable
private final ILootFunction[]
private boolean
private static final org.apache.logging.log4j.Logger
private ResourceLocation
private final LootParameterSet
-
Constructor Summary
ModifierConstructorDescriptionprivate
LootTable
(LootParameterSet p_i51265_1_, LootPool[] p_i51265_2_, ILootFunction[] p_i51265_3_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
private void
createStackSplitter
(Consumer<ItemStack> p_216124_0_) void
fill
(IInventory p_216118_1_, LootContext p_216118_2_) void
freeze()
getAvailableSlots
(IInventory p_186459_1_, Random p_186459_2_) getRandomItems
(LootContext p_216113_1_) void
getRandomItems
(LootContext p_216120_1_, Consumer<ItemStack> p_216120_2_) Deprecated.void
getRandomItemsRaw
(LootContext p_216114_1_, Consumer<ItemStack> p_216114_2_) boolean
isFrozen()
static LootTable.Builder
removePool
(String name) void
private void
shuffleAndSplitItems
(List<ItemStack> p_186463_1_, int p_186463_2_, Random p_186463_3_) void
validate
(ValidationTracker p_227506_1_)
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
EMPTY
-
DEFAULT_PARAM_SET
-
paramSet
-
pools
-
functions
-
compositeFunction
-
isFrozen
private boolean isFrozen -
lootTableId
-
-
Constructor Details
-
LootTable
private LootTable(LootParameterSet p_i51265_1_, LootPool[] p_i51265_2_, ILootFunction[] p_i51265_3_)
-
-
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
-