net.minecraft.loot.function

public class SetLootTableLootFunction

extends ConditionalLootFunction

All mapped superinterfaces:

LootFunction, LootContextAware, LootTableReportable

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

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<SetLootTableLootFunction>
MAP_CODEC
MAP_CODEC
field_45842
CODEC
private final RegistryKey<LootTable>
name
name
field_1116
lootTable
private final long
seed
seed
field_1117
seed
private final RegistryEntry<BlockEntityType<?>>
type
type
field_34773
type

Constructor summary

ModifierConstructor
private (List<LootCondition> conditions, RegistryKey<LootTable> lootTable, long seed, RegistryEntry<BlockEntityType<?>> blockEntityType)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.MapCodec<SetLootTableLootFunction>
codec()
codec()
method_1_738()
getCodec()
public ItemStack
run(ItemStack itemStack, LootContext context)
run(ItemStack itemStack, LootContext context)
method_522(class_1799 arg0, class_47 arg1)
process(ItemStack arg0, LootContext arg1)
public void
validate(ValidationContext context)
validate(ValidationContext context)
method_292(class_58 arg0)
report(LootTableReporter arg0)
public static ConditionalLootFunction$Builder<?>
withLootTable(BlockEntityType<?> type, ResourceKey<LootTable> value)
withLootTable(BlockEntityType<?> type, ResourceKey<LootTable> value)
method_35534(class_2591<?> arg0, class_5321<class_52> arg1)
builder(BlockEntityType<?> type, RegistryKey<LootTable> lootTable)
public static ConditionalLootFunction$Builder<?>
withLootTable(BlockEntityType<?> type, ResourceKey<LootTable> value, long seed)
withLootTable(BlockEntityType<?> type, ResourceKey<LootTable> value, long seed)
method_35535(class_2591<?> arg0, class_5321<class_52> arg1, long arg2)
builder(BlockEntityType<?> type, RegistryKey<LootTable> lootTable, long seed)