Class LootItem
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.LootItem
- 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
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
ConstructorDescriptionLootItem(Item p_79566_, int p_79567_, int p_79568_, LootItemCondition[] p_79569_, LootItemFunction[] p_79570_)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createItemStack(Consumer<ItemStack> p_79590_, LootContext p_79591_)
getType()
static LootPoolSingletonContainer.Builder<?>
lootTableItem(ItemLike p_79580_)
Methods inherited from class net.minecraft.world.level.storage.loot.entries.LootPoolSingletonContainer
expand, 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
-
item
-
-
Constructor Details
-
LootItem
LootItem(Item p_79566_, int p_79567_, int p_79568_, LootItemCondition[] p_79569_, LootItemFunction[] p_79570_)
-
-
Method Details
-
getType
- Specified by:
getType
in classLootPoolEntryContainer
-
createItemStack
- Specified by:
createItemStack
in classLootPoolSingletonContainer
-
lootTableItem
-