net.minecraft.loot.entry

public class LootTableEntry

extends LeafEntry

All mapped superinterfaces:

EntryCombiner, LootTableReportable

net.minecraft.world.level.storage.loot.entries.NestedLootTable
net.minecraft.world.level.storage.loot.entries.NestedLootTable
net.minecraft.class_83
net.minecraft.loot.entry.LootTableEntry

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<LootTableEntry>
MAP_CODEC
MAP_CODEC
field_45803
MAP_CODEC
public static final ErrorReporter$Context
INLINE_LOOT_TABLE_PATH_ELEMENT
INLINE_LOOT_TABLE_PATH_ELEMENT
field_60422
INLINE_CONTEXT
private final com.mojang.datafixers.util.Either<RegistryKey<LootTable>, LootTable>
contents
contents
field_49429
value

Constructor summary

ModifierConstructor
private (com.mojang.datafixers.util.Either<RegistryKey<LootTable>, LootTable> value, int weight, int quality, List<LootCondition> conditions, List<LootFunction> functions)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.MapCodec<LootTableEntry>
codec()
codec()
method_1_748()
getMapCodec()
public void
createItemStack(Consumer<ItemStack> output, LootContext context)
createItemStack(Consumer<ItemStack> output, LootContext context)
method_433(Consumer<class_1799> arg0, class_47 arg1)
generateLoot(Consumer<ItemStack> arg0, LootContext arg1)
public void
validate(ValidationContext context)
validate(ValidationContext context)
method_292(class_58 arg0)
report(LootTableReporter arg0)
public static LeafEntry$Builder<?>
lootTableReference(ResourceKey<LootTable> name)
lootTableReference(ResourceKey<LootTable> name)
method_428(class_5321<class_52> arg0)
builder(RegistryKey<LootTable> key)
public static LeafEntry$Builder<?>
inlineLootTable(LootTable table)
inlineLootTable(LootTable table)
method_57631(class_52 arg0)
builder(LootTable table)