Package net.minecraft
Record Class class_12271.class_12274
java.lang.Object
java.lang.Record
net.minecraft.class_12271.class_12274
- Record Components:
slots-limit-
- All Implemented Interfaces:
class_12271
- Enclosing interface:
class_12271
public static record class_12271.class_12274(class_12271 slots, int limit)
extends Record
implements class_12271
- Mappings:
Namespace Name named net/minecraft/class_12271$class_12274intermediary net/minecraft/class_12271$class_12274official dtq$cnamed slotsintermediary comp_5167official bnamed limitintermediary comp_5168official c
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.class_12271
class_12271.class_12272, class_12271.class_12273, class_12271.class_12274 -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thelimitrecord component.private final class_12271The field for theslotsrecord component.Fields inherited from interface net.minecraft.class_12271
field_64161 -
Constructor Summary
ConstructorsConstructorDescriptionclass_12274(class_12271 slots, int limit) Creates an instance of aclass_12274record class. -
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.intlimit()Returns the value of thelimitrecord component.method_76123(int int2) slots()Returns the value of theslotsrecord component.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.class_12271
method_76128, method_76129
-
Field Details
-
Constructor Details
-
Method Details
-
itemCopies
- Specified by:
itemCopiesin interfaceclass_12271
-
method_76123
- Specified by:
method_76123in interfaceclass_12271- Mappings:
Namespace Name Mixin selector named method_76123Lnet/minecraft/class_12271;method_76123(I)Lnet/minecraft/class_12271;intermediary method_76123Lnet/minecraft/class_12271;method_76123(I)Lnet/minecraft/class_12271;official aLdtq;a(I)Ldtq;
-
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 '=='. -
slots
Returns the value of theslotsrecord component.- Returns:
- the value of the
slotsrecord component
-
limit
public int limit()Returns the value of thelimitrecord component.- Returns:
- the value of the
limitrecord component
-