Class LootPoolSingletonContainer
java.lang.Object
net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer
net.minecraft.world.level.storage.loot.entries.LootPoolSingletonContainer
- All Implemented Interfaces:
- ComposableEntryContainer
- Direct Known Subclasses:
- DynamicLoot,- EmptyLootItem,- LootItem,- LootTableReference,- TagEntry
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic class(package private) static classprotected classprotected static interface
- 
Field SummaryFieldsModifier and TypeFieldDescription(package private) final BiFunction<ItemStack,LootContext, ItemStack> static final intstatic final intprivate final LootPoolEntryprotected final List<LootItemFunction>protected final intprotected final intFields inherited from class net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainerconditionsFields inherited from interface net.minecraft.world.level.storage.loot.entries.ComposableEntryContainerALWAYS_FALSE, ALWAYS_TRUE
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedLootPoolSingletonContainer(int p_79681_, int p_79682_, List<LootItemCondition> p_297957_, List<LootItemFunction> p_300940_) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected abstract voidcreateItemStack(Consumer<ItemStack> p_79691_, LootContext p_79692_) booleanexpand(LootContext p_79694_, Consumer<LootPoolEntry> p_79695_) static LootPoolSingletonContainer.Builder<?>protected static <T extends LootPoolSingletonContainer>
 com.mojang.datafixers.Products.P4<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<T>,Integer, Integer, List<LootItemCondition>, List<LootItemFunction>> singletonFields(com.mojang.serialization.codecs.RecordCodecBuilder.Instance<T> p_299133_) voidvalidate(ValidationContext p_79686_) Methods inherited from class net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainercanRun, commonFields, getTypeMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.level.storage.loot.entries.ComposableEntryContainerand, or
- 
Field Details- 
DEFAULT_WEIGHTpublic static final int DEFAULT_WEIGHT- See Also:
 
- 
DEFAULT_QUALITYpublic static final int DEFAULT_QUALITY- See Also:
 
- 
weightprotected final int weight
- 
qualityprotected final int quality
- 
functions
- 
compositeFunction
- 
entry
 
- 
- 
Constructor Details- 
LootPoolSingletonContainerprotected LootPoolSingletonContainer(int p_79681_, int p_79682_, List<LootItemCondition> p_297957_, List<LootItemFunction> p_300940_) 
 
- 
- 
Method Details- 
singletonFieldsprotected static <T extends LootPoolSingletonContainer> com.mojang.datafixers.Products.P4<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<T>,Integer, singletonFieldsInteger, List<LootItemCondition>, List<LootItemFunction>> (com.mojang.serialization.codecs.RecordCodecBuilder.Instance<T> p_299133_) 
- 
validate- Overrides:
- validatein class- LootPoolEntryContainer
 
- 
createItemStack
- 
expand
- 
simpleBuilderpublic static LootPoolSingletonContainer.Builder<?> simpleBuilder(LootPoolSingletonContainer.EntryConstructor p_79688_) 
 
-