Class SetContainerContents
java.lang.Object
net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
net.minecraft.world.level.storage.loot.functions.SetContainerContents
- All Implemented Interfaces:
- BiFunction<ItemStack,,- LootContext, - ItemStack> - LootItemFunction,- LootContextUser
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunctionLootItemConditionalFunction.DummyBuilder
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<SetContainerContents>private final List<LootPoolEntryContainer>private final Holder<BlockEntityType<?>>Fields inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunctionpredicates
- 
Constructor SummaryConstructorsConstructorDescriptionSetContainerContents(List<LootItemCondition> p_193035_, Holder<BlockEntityType<?>> p_300015_, List<LootPoolEntryContainer> p_298786_) 
- 
Method SummaryModifier and TypeMethodDescriptiongetType()run(ItemStack p_80911_, LootContext p_80912_) static SetContainerContents.BuildersetContents(BlockEntityType<?> p_193037_) voidvalidate(ValidationContext p_80918_) Methods inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunctionapply, commonFields, simpleBuilderMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiFunctionandThenMethods inherited from interface net.minecraft.world.level.storage.loot.LootContextUsergetReferencedContextParams
- 
Field Details- 
CODEC
- 
type
- 
entries
 
- 
- 
Constructor Details- 
SetContainerContentsSetContainerContents(List<LootItemCondition> p_193035_, Holder<BlockEntityType<?>> p_300015_, List<LootPoolEntryContainer> p_298786_) 
 
- 
- 
Method Details- 
getType
- 
run- Specified by:
- runin class- LootItemConditionalFunction
 
- 
validate- Specified by:
- validatein interface- LootContextUser
- Overrides:
- validatein class- LootItemConditionalFunction
 
- 
setContents
 
-