Package net.minecraft.screen.slot
Record Class ForgingSlotsManager.ForgingSlot
java.lang.Object
java.lang.Record
net.minecraft.screen.slot.ForgingSlotsManager.ForgingSlot
- Record Components:
slotId-x-y-mayPlace-
- Enclosing class:
ForgingSlotsManager
public static record ForgingSlotsManager.ForgingSlot(int slotId, int x, int y, Predicate<ItemStack> mayPlace)
extends Record
- Mappings:
Namespace Name official cce$bintermediary net/minecraft/class_8047$class_8049named net/minecraft/screen/slot/ForgingSlotsManager$ForgingSlotofficial aintermediary comp_1204named slotIdofficial bintermediary comp_1205named xofficial cintermediary comp_1206named yofficial dintermediary comp_1207named mayPlace
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final ForgingSlotsManager.ForgingSlotThe field for themayPlacerecord component.private final intThe field for theslotIdrecord component.private final intThe field for thexrecord component.private final intThe field for theyrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.mayPlace()Returns the value of themayPlacerecord component.intslotId()Returns the value of theslotIdrecord component.final StringtoString()Returns a string representation of this record class.intx()Returns the value of thexrecord component.inty()Returns the value of theyrecord component.
-
Field Details
-
slotId
private final int slotIdThe field for theslotIdrecord component. -
x
private final int xThe field for thexrecord component. -
y
private final int yThe field for theyrecord component. -
mayPlace
The field for themayPlacerecord component. -
DEFAULT
- Mappings:
Namespace Name Mixin selector official eLcce$b;e:Lcce$b;intermediary field_41911Lnet/minecraft/class_8047$class_8049;field_41911:Lnet/minecraft/class_8047$class_8049;named DEFAULTLnet/minecraft/screen/slot/ForgingSlotsManager$ForgingSlot;DEFAULT:Lnet/minecraft/screen/slot/ForgingSlotsManager$ForgingSlot;
-
-
Constructor Details
-
ForgingSlot
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
slotId
public int slotId()Returns the value of theslotIdrecord component.- Returns:
- the value of the
slotIdrecord component
-
x
public int x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
y
public int y()Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-
mayPlace
Returns the value of themayPlacerecord component.- Returns:
- the value of the
mayPlacerecord component
-