Package net.minecraft
Record Class class_9354
java.lang.Object
java.lang.Record
net.minecraft.class_9354
- Record Components:
value-
- All Implemented Interfaces:
class_9360
- Mappings:
Namespace Name official cbintermediary net/minecraft/class_9354named net/minecraft/class_9354official cintermediary comp_2458named value
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.class_9360
class_9360.Type<T extends class_9360> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<class_9354> private final NbtPredicateThe field for thevaluerecord component.Fields inherited from interface net.minecraft.class_9360
field_49805 -
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.booleanmethod_58161(ItemStack itemStack) static class_9354method_58162(NbtPredicate nbtPredicate) final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Field Details
-
value
The field for thevaluerecord component. -
field_49797
- Mappings:
Namespace Name Mixin selector official aLcb;a:Lcom/mojang/serialization/Codec;intermediary field_49797Lnet/minecraft/class_9354;field_49797:Lcom/mojang/serialization/Codec;named field_49797Lnet/minecraft/class_9354;field_49797:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
class_9354
-
-
Method Details
-
method_58161
- Specified by:
method_58161in interfaceclass_9360- Mappings:
Namespace Name Mixin selector official aLch;a(Lcsd;)Zintermediary method_58161Lnet/minecraft/class_9360;method_58161(Lnet/minecraft/class_1799;)Znamed method_58161Lnet/minecraft/class_9360;method_58161(Lnet/minecraft/item/ItemStack;)Z
-
method_58162
- Mappings:
Namespace Name Mixin selector official aLcb;a(Lcu;)Lcb;intermediary method_58162Lnet/minecraft/class_9354;method_58162(Lnet/minecraft/class_2105;)Lnet/minecraft/class_9354;named method_58162Lnet/minecraft/class_9354;method_58162(Lnet/minecraft/predicate/NbtPredicate;)Lnet/minecraft/class_9354;
-
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). -
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-