net.minecraft.world.level.storage.loot.functions

public class SetContainerLootTable

extends LootItemConditionalFunction

All mapped superinterfaces:

LootItemFunction, LootContextUser

eyn
net.minecraft.world.level.storage.loot.functions.SetContainerLootTable
net.minecraft.class_144
net.minecraft.loot.function.SetLootTableLootFunction
net.minecraft.world.level.storage.loot.functions.LootItemFunctionSetTable

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<SetContainerLootTable>
a
CODEC
field_45842
CODEC
private final ResourceKey<LootTable>
b
name
field_1116
lootTable
private final long
c
seed
field_1117
seed
private final Holder<BlockEntityType<?>>
d
type
field_34773
type

Constructor summary

ModifierConstructor
private (List<LootItemCondition> conditions, ResourceKey<LootTable> lootTable, long seed, Holder<BlockEntityType<?>> blockEntityType)

Method summary

Modifier and TypeMethod
public LootItemFunctionType<SetContainerLootTable>
b()
getType()
method_29321()
getType()
public ItemStack
a(cxp arg0, ewp arg1)
run(ItemStack arg0, LootContext arg1)
method_522(class_1799 arg0, class_47 arg1)
process(ItemStack arg0, LootContext arg1)
public void
a(ewv arg0)
validate(ValidationContext arg0)
method_292(class_58 arg0)
validate(LootTableReporter arg0)
public static LootItemConditionalFunction$Builder<?>
a(duz<?> arg0, aly<ewu> arg1)
withLootTable(BlockEntityType<?> arg0, ResourceKey<LootTable> arg1)
method_35534(class_2591<?> arg0, class_5321<class_52> arg1)
builder(BlockEntityType<?> type, RegistryKey<LootTable> lootTable)
public static LootItemConditionalFunction$Builder<?>
a(duz<?> arg0, aly<ewu> arg1, long arg2)
withLootTable(BlockEntityType<?> arg0, ResourceKey<LootTable> arg1, long arg2)
method_35535(class_2591<?> arg0, class_5321<class_52> arg1, long arg2)
builder(BlockEntityType<?> type, RegistryKey<LootTable> lootTable, long seed)