Package net.minecraft.world.item.slot
Class CompositeSlotSource
java.lang.Object
net.minecraft.world.item.slot.CompositeSlotSource
- All Implemented Interfaces:
SlotSource,LootContextUser
- Direct Known Subclasses:
GroupSlotSource
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Function<LootContext, SlotCollection> protected final List<SlotSource> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract com.mojang.serialization.MapCodec<? extends CompositeSlotSource> codec()protected static <T extends CompositeSlotSource>
com.mojang.serialization.MapCodec<T> createCodec(Function<List<SlotSource>, T> pFactory) protected static <T extends CompositeSlotSource>
com.mojang.serialization.Codec<T> createInlineCodec(Function<List<SlotSource>, T> pFactory) provide(LootContext p_460833_) voidvalidate(ValidationContext p_460875_) Validate that this object is used correctly according to the given ValidationContext.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.level.storage.loot.LootContextUser
getReferencedContextParams
-
Field Details
-
terms
-
compositeSlotSource
-
-
Constructor Details
-
CompositeSlotSource
-
-
Method Details
-
createCodec
protected static <T extends CompositeSlotSource> com.mojang.serialization.MapCodec<T> createCodec(Function<List<SlotSource>, T> pFactory) -
createInlineCodec
protected static <T extends CompositeSlotSource> com.mojang.serialization.Codec<T> createInlineCodec(Function<List<SlotSource>, T> pFactory) -
codec
- Specified by:
codecin interfaceSlotSource
-
provide
- Specified by:
providein interfaceSlotSource
-
validate
Description copied from interface:LootContextUserValidate that this object is used correctly according to the given ValidationContext.- Specified by:
validatein interfaceLootContextUser
-