net.minecraft.loot.entry

public class TagEntry

extends ExpandableLeafEntry

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 RegistryEntryList<Item>
tag
tag
field_1005
name

Constructor summary

ModifierConstructor
private (RegistryEntryList<Item> items, boolean expand, int weight, int quality, Optional<RegistryEntry<LootCondition>> condition, Optional<RegistryEntry<LootFunction>> modifier)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.MapCodec<TagEntry>
codec()
codec()
method_1_748()
getMapCodec()
protected boolean
addExpandedEntries(Consumer<LootPoolEntry> output)
addExpandedEntries(Consumer<LootPoolEntry> output)
method_447(Consumer<class_82> arg0)
growExpand(Consumer<LootChoice> arg0)
protected boolean
addUnexpandedEntry(Consumer<LootPoolEntry> output)
addUnexpandedEntry(Consumer<LootPoolEntry> output)
method_1_8971(Consumer<class_82> arg0)
growNonExpand(Consumer<LootChoice> arg0)
public static LeafEntry$Builder<?>
tagContents(HolderSet<Item> tag)
tagContents(HolderSet<Item> tag)
method_35517(class_6885<class_1792> arg0)
builder(RegistryEntryList<Item> items)
public static LeafEntry$Builder<?>
expandTag(HolderSet<Item> tag)
expandTag(HolderSet<Item> tag)
method_445(class_6885<class_1792> arg0)
expandBuilder(RegistryEntryList<Item> items)