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.class_144
net.minecraft.loot.function.SetLootTableLootFunction

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<SetLootTableLootFunction>
MAP_CODEC
field_45842
CODEC
private final RegistryKey<LootTable>
name
field_1116
lootTable
private final long
seed
field_1117
seed
private final RegistryEntry<BlockEntityType<?>>
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()
method_1_738()
getCodec()
public ItemStack
run(ItemStack itemStack, LootContext context)
method_522(class_1799 arg0, class_47 arg1)
process(ItemStack arg0, LootContext arg1)
public void
validate(ValidationContext context)
method_292(class_58 arg0)
report(LootTableReporter arg0)
public static ConditionalLootFunction$Builder<?>
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)
method_35535(class_2591<?> arg0, class_5321<class_52> arg1, long arg2)
builder(BlockEntityType<?> type, RegistryKey<LootTable> lootTable, long seed)
private static LootFunction
lambda$withLootTable$1(ResourceKey arg0, long arg1, BlockEntityType arg2, List arg3)
method_35536(class_5321 arg0, long arg1, class_2591 arg2, List arg3)
method_35536(RegistryKey arg0, long arg1, BlockEntityType arg2, List conditions)
private static LootFunction
lambda$withLootTable$0(ResourceKey arg0, BlockEntityType arg1, List arg2)
method_35537(class_5321 arg0, class_2591 arg1, List arg2)
method_35537(RegistryKey arg0, BlockEntityType arg1, List conditions)
private static com.mojang.datafixers.kinds.App
lambda$static$0(com.mojang.serialization.codecs.RecordCodecBuilder$Instance arg0)
method_53367(com.mojang.serialization.codecs.RecordCodecBuilder$Instance arg0)
method_53367(com.mojang.serialization.codecs.RecordCodecBuilder$Instance instance)
private static RegistryEntry
lambda$static$3(SetContainerLootTable arg0)
method_53366(class_144 arg0)
method_53366(SetLootTableLootFunction function)
private static Long
lambda$static$2(SetContainerLootTable arg0)
method_53368(class_144 arg0)
method_53368(SetLootTableLootFunction function)
private static RegistryKey
lambda$static$1(SetContainerLootTable arg0)
method_53369(class_144 arg0)
method_53369(SetLootTableLootFunction function)