Record Class GhostSlots.GhostSlot
java.lang.Object
java.lang.Record
net.minecraft.client.gui.screens.recipebook.GhostSlots.GhostSlot
- Enclosing class:
GhostSlots
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanThe field for theisResultSlotrecord component.The field for theitemsrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.getItem(int itemIndex) final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisResultSlotrecord component.items()Returns the value of theitemsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
items
-
isResultSlot
private final boolean isResultSlotThe field for theisResultSlotrecord component.
-
-
Constructor Details
-
GhostSlot
-
-
Method Details
-
getItem
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
items
-
isResultSlot
public boolean isResultSlot()Returns the value of theisResultSlotrecord component.- Returns:
- the value of the
isResultSlotrecord component
-