net.minecraft.loot.entry

public class TagEntry

extends LeafEntry

All mapped superinterfaces:

EntryCombiner, LootTableReportable

net.minecraft.world.level.storage.loot.entries.TagEntry
net.minecraft.world.level.storage.loot.entries.TagEntry
net.minecraft.class_91
net.minecraft.loot.entry.TagEntry

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<TagEntry>
MAP_CODEC
MAP_CODEC
field_45805
CODEC
private final TagKey<Item>
tag
tag
field_1005
name
private final boolean
expand
expand
field_1006
expand

Constructor summary

ModifierConstructor
private (TagKey<Item> name, boolean expand, int weight, int quality, List<LootCondition> conditions, List<LootFunction> functions)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.MapCodec<TagEntry>
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)
private boolean
expandTag(LootContext context, Consumer<LootPoolEntry> output)
expandTag(LootContext context, Consumer<LootPoolEntry> output)
method_447(class_47 arg0, Consumer<class_82> arg1)
grow(LootContext context, Consumer<LootChoice> lootChoiceExpander)
public boolean
expand(LootContext context, Consumer<LootPoolEntry> output)
expand(LootContext context, Consumer<LootPoolEntry> output)
method_1_345(class_47 arg0, Consumer<class_82> arg1)
expand(LootContext arg0, Consumer<LootChoice> arg1)
public static LeafEntry$Builder<?>
tagContents(TagKey<Item> tag)
tagContents(TagKey<Item> tag)
method_35517(class_6862<class_1792> arg0)
builder(TagKey<Item> name)
public static LeafEntry$Builder<?>
expandTag(TagKey<Item> tag)
expandTag(TagKey<Item> tag)
method_445(class_6862<class_1792> arg0)
expandBuilder(TagKey<Item> name)