Class TransformedSlotSource
java.lang.Object
net.minecraft.world.item.slot.TransformedSlotSource
- All Implemented Interfaces:
SlotSource, LootContextUser, Validatable
- Direct Known Subclasses:
ContentsSlotSource, FilteredSlotSource, LimitSlotSource
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract MapCodec<? extends TransformedSlotSource> codec()protected static <T extends TransformedSlotSource>
Products.P1<RecordCodecBuilder.Mu<T>, SlotSource> final SlotCollectionprovide(LootContext context) protected abstract SlotCollectiontransform(SlotCollection slots) 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
-
slotSource
-
-
Constructor Details
-
TransformedSlotSource
-
-
Method Details
-
codec
- Specified by:
codecin interfaceSlotSource
-
commonFields
protected static <T extends TransformedSlotSource> Products.P1<RecordCodecBuilder.Mu<T>, SlotSource> commonFields(RecordCodecBuilder.Instance<T> i) -
transform
-
provide
- Specified by:
providein interfaceSlotSource
-
validate
- Specified by:
validatein interfaceLootContextUser- Specified by:
validatein interfaceValidatable
-