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 - ccg$b- intermediary - net/minecraft/class_8047$class_8049- named - net/minecraft/screen/slot/ForgingSlotsManager$ForgingSlot- official - a- intermediary - comp_1204- named - slotId- official - b- intermediary - comp_1205- named - x- official - c- intermediary - comp_1206- named - y- official - d- intermediary - comp_1207- named - mayPlace
- 
Field SummaryFieldsModifier 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 SummaryConstructors
- 
Method SummaryModifier 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- 
slotIdprivate final int slotIdThe field for theslotIdrecord component.
- 
xprivate final int xThe field for thexrecord component.
- 
yprivate final int yThe field for theyrecord component.
- 
mayPlaceThe field for themayPlacerecord component.
- 
DEFAULT- Mappings:
- Namespace - Name - Mixin selector - official - e- Lccg$b;e:Lccg$b;- intermediary - field_41911- Lnet/minecraft/class_8047$class_8049;field_41911:Lnet/minecraft/class_8047$class_8049;- named - DEFAULT- Lnet/minecraft/screen/slot/ForgingSlotsManager$ForgingSlot;DEFAULT:Lnet/minecraft/screen/slot/ForgingSlotsManager$ForgingSlot;
 
 
- 
- 
Constructor Details- 
ForgingSlot
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
slotIdpublic int slotId()Returns the value of theslotIdrecord component.- Returns:
- the value of the slotIdrecord component
 
- 
xpublic int x()Returns the value of thexrecord component.- Returns:
- the value of the xrecord component
 
- 
ypublic int y()Returns the value of theyrecord component.- Returns:
- the value of the yrecord component
 
- 
mayPlaceReturns the value of themayPlacerecord component.- Returns:
- the value of the mayPlacerecord component
 
 
-