Package net.minecraft.world.item.slot
Record Class EmptySlotSource
java.lang.Object
java.lang.Record
net.minecraft.world.item.slot.EmptySlotSource
- All Implemented Interfaces:
SlotSource,LootContextUser
-
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 p_461274_) final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.level.storage.loot.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
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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.
-