Class CompositeSlotSource
java.lang.Object
net.minecraft.world.item.slot.CompositeSlotSource
- All Implemented Interfaces:
SlotSource, LootContextUser, Validatable
- 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 MapCodec<? extends CompositeSlotSource> codec()protected static <T extends CompositeSlotSource>
MapCodec<T> createCodec(Function<List<SlotSource>, T> factory) protected static <T extends CompositeSlotSource>
Codec<T> createInlineCodec(Function<List<SlotSource>, T> factory) provide(LootContext context) voidvalidate(ValidationContext context) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface LootContextUser
getReferencedContextParams
-
Field Details
-
terms
-
compositeSlotSource
-
-
Constructor Details
-
CompositeSlotSource
-
-
Method Details
-
createCodec
protected static <T extends CompositeSlotSource> MapCodec<T> createCodec(Function<List<SlotSource>, T> factory) -
createInlineCodec
protected static <T extends CompositeSlotSource> Codec<T> createInlineCodec(Function<List<SlotSource>, T> factory) -
codec
- Specified by:
codecin interfaceSlotSource
-
provide
- Specified by:
providein interfaceSlotSource
-
validate
- Specified by:
validatein interfaceLootContextUser- Specified by:
validatein interfaceValidatable
-