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 ClassesNested 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
FieldsModifier and TypeFieldDescription(package 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
ConstructorsConstructorDescriptionTagEntry
(TagKey<Item> p_205078_, boolean p_205079_, int p_205080_, int p_205081_, LootItemCondition[] p_205082_, LootItemFunction[] p_205083_) -
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, validate
Methods inherited from class net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer
canRun
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
-
tag
-
expand
final boolean expand
-
-
Constructor Details
-
TagEntry
TagEntry(TagKey<Item> p_205078_, boolean p_205079_, int p_205080_, int p_205081_, LootItemCondition[] p_205082_, LootItemFunction[] p_205083_)
-
-
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
-