Record Class EmptySlotSource
java.lang.Object
java.lang.Record
net.minecraft.world.item.slot.EmptySlotSource
- All Implemented Interfaces:
SlotSource, LootContextUser, Validatable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec<EmptySlotSource> codec()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.provide(LootContext context) final StringtoString()Returns a string representation of this record class.Methods inherited from interface LootContextUser
getReferencedContextParams, validate
-
Field Details
-
MAP_CODEC
-
-
Constructor Details
-
EmptySlotSource
public EmptySlotSource()Creates an instance of aEmptySlotSourcerecord class.
-
-
Method Details
-
codec
- Specified by:
codecin interfaceSlotSource
-
provide
- Specified by:
providein interfaceSlotSource
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal.
-