Class TagEntry
java.lang.Object
net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer
net.minecraft.world.level.storage.loot.entries.LootPoolSingletonContainer
net.minecraft.world.level.storage.loot.entries.TagEntry
- All Implemented Interfaces:
ComposableEntryContainer
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.storage.loot.entries.LootPoolSingletonContainer
LootPoolSingletonContainer.Builder<T extends LootPoolSingletonContainer.Builder<T>>, LootPoolSingletonContainer.DummyBuilder, LootPoolSingletonContainer.EntryBase, LootPoolSingletonContainer.EntryConstructor
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<TagEntry>
private final boolean
Fields inherited from class net.minecraft.world.level.storage.loot.entries.LootPoolSingletonContainer
compositeFunction, DEFAULT_QUALITY, DEFAULT_WEIGHT, functions, quality, weight
Fields inherited from class net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer
conditions
Fields inherited from interface net.minecraft.world.level.storage.loot.entries.ComposableEntryContainer
ALWAYS_FALSE, ALWAYS_TRUE
-
Constructor Summary
ModifierConstructorDescriptionprivate
TagEntry
(TagKey<Item> p_205078_, boolean p_205079_, int p_205080_, int p_205081_, List<LootItemCondition> p_298538_, List<LootItemFunction> p_301109_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
createItemStack
(Consumer<ItemStack> p_79854_, LootContext p_79855_) boolean
expand
(LootContext p_79861_, Consumer<LootPoolEntry> p_79862_) static LootPoolSingletonContainer.Builder<?>
private boolean
expandTag
(LootContext p_79846_, Consumer<LootPoolEntry> p_79847_) getType()
static LootPoolSingletonContainer.Builder<?>
tagContents
(TagKey<Item> p_205085_) Methods inherited from class net.minecraft.world.level.storage.loot.entries.LootPoolSingletonContainer
simpleBuilder, singletonFields, validate
Methods inherited from class net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer
canRun, commonFields
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.level.storage.loot.entries.ComposableEntryContainer
and, or
-
Field Details
-
CODEC
-
tag
-
expand
private final boolean expand
-
-
Constructor Details
-
TagEntry
private TagEntry(TagKey<Item> p_205078_, boolean p_205079_, int p_205080_, int p_205081_, List<LootItemCondition> p_298538_, List<LootItemFunction> p_301109_)
-
-
Method Details
-
getType
- Specified by:
getType
in classLootPoolEntryContainer
-
createItemStack
- Specified by:
createItemStack
in classLootPoolSingletonContainer
-
expandTag
-
expand
- Specified by:
expand
in interfaceComposableEntryContainer
- Overrides:
expand
in classLootPoolSingletonContainer
-
tagContents
-
expandTag
-