Package net.minecraft
Record Class class_12271.class_12273
java.lang.Object
java.lang.Record
net.minecraft.class_12271.class_12273
- Record Components:
slots-mapper-
- All Implemented Interfaces:
class_12271
- Enclosing interface:
class_12271
public static record class_12271.class_12273(class_12271 slots, Function<ItemStack,? extends class_12271> mapper)
extends Record
implements class_12271
- Mappings:
Namespace Name named net/minecraft/class_12271$class_12273intermediary net/minecraft/class_12271$class_12273official dtq$bnamed slotsintermediary comp_5165official bnamed mapperintermediary comp_5166official 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 Function<ItemStack, ? extends class_12271> The field for themapperrecord component.private final class_12271The field for theslotsrecord component.Fields inherited from interface net.minecraft.class_12271
field_64161 -
Constructor Summary
ConstructorsConstructorDescriptionclass_12273(class_12271 slots, Function<ItemStack, ? extends class_12271> mapper) Creates an instance of aclass_12273record 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.Function<ItemStack, ? extends class_12271> mapper()Returns the value of themapperrecord component.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_76123, method_76128, method_76129
-
Field Details
-
Constructor Details
-
Method Details
-
itemCopies
- Specified by:
itemCopiesin interfaceclass_12271
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
slots
Returns the value of theslotsrecord component.- Returns:
- the value of the
slotsrecord component
-
mapper
Returns the value of themapperrecord component.- Returns:
- the value of the
mapperrecord component
-