Package net.minecraft
Record Class class_10302.class_10306
java.lang.Object
java.lang.Record
net.minecraft.class_10302.class_10306
- Record Components:
item-
- All Implemented Interfaces:
class_10302
- Enclosing interface:
class_10302
public static record class_10302.class_10306(RegistryEntry<Item> item)
extends Record
implements class_10302
- Mappings:
Namespace Name named net/minecraft/class_10302$class_10306intermediary net/minecraft/class_10302$class_10306official ddi$dnamed itemintermediary comp_3273official f
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.class_10302
class_10302.class_10303, class_10302.class_10304, class_10302.class_10305, class_10302.class_10306, class_10302.class_10307, class_10302.class_10308, class_10302.class_10309, class_10302.class_10310, class_10302.class_10311, class_10302.class_10312<T extends class_10302> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<class_10302.class_10306> static final PacketCodec<RegistryByteBuf, class_10302.class_10306> static final class_10302.class_10312<class_10302.class_10306> private final RegistryEntry<Item> The field for theitemrecord component.Fields inherited from interface net.minecraft.class_10302
field_54671, field_54672 -
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.item()Returns the value of theitemrecord component.booleanmethod_64737(FeatureSet featureSet) voidmethod_64739(class_10302.class_10308 class_10308, class_10302.class_10309 class_10309) 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_10302
method_64738, method_64740, method_64742
-
Field Details
-
item
The field for theitemrecord component. -
field_54685
- Mappings:
Namespace Name Mixin selector named field_54685Lnet/minecraft/class_10302$class_10306;field_54685:Lcom/mojang/serialization/MapCodec;intermediary field_54685Lnet/minecraft/class_10302$class_10306;field_54685:Lcom/mojang/serialization/MapCodec;official cLddi$d;c:Lcom/mojang/serialization/MapCodec;
-
field_54686
- Mappings:
Namespace Name Mixin selector named field_54686Lnet/minecraft/class_10302$class_10306;field_54686:Lnet/minecraft/network/codec/PacketCodec;intermediary field_54686Lnet/minecraft/class_10302$class_10306;field_54686:Lnet/minecraft/class_9139;official dLddi$d;d:Lzt;
-
field_54687
- Mappings:
Namespace Name Mixin selector named field_54687Lnet/minecraft/class_10302$class_10306;field_54687:Lnet/minecraft/class_10302$class_10312;intermediary field_54687Lnet/minecraft/class_10302$class_10306;field_54687:Lnet/minecraft/class_10302$class_10312;official eLddi$d;e:Lddi$j;
-
-
Constructor Details
-
class_10306
-
class_10306
-
-
Method Details
-
method_64736
- Specified by:
method_64736in interfaceclass_10302- Mappings:
Namespace Name Mixin selector named method_64736Lnet/minecraft/class_10302;method_64736()Lnet/minecraft/class_10302$class_10312;intermediary method_64736Lnet/minecraft/class_10302;method_64736()Lnet/minecraft/class_10302$class_10312;official aLddi;a()Lddi$j;
-
method_64739
- Specified by:
method_64739in interfaceclass_10302- Mappings:
Namespace Name Mixin selector named method_64739Lnet/minecraft/class_10302;method_64739(Lnet/minecraft/class_10302$class_10308;Lnet/minecraft/class_10302$class_10309;)Vintermediary method_64739Lnet/minecraft/class_10302;method_64739(Lnet/minecraft/class_10302$class_10308;Lnet/minecraft/class_10302$class_10309;)Vofficial aLddi;a(Lddi$f;Lddi$g;)V
-
method_64737
- Specified by:
method_64737in interfaceclass_10302- Mappings:
Namespace Name Mixin selector named method_64737Lnet/minecraft/class_10302;method_64737(Lnet/minecraft/resource/featuretoggle/FeatureSet;)Zintermediary method_64737Lnet/minecraft/class_10302;method_64737(Lnet/minecraft/class_7699;)Zofficial aLddi;a(Lcso;)Z
-
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). -
item
Returns the value of theitemrecord component.- Returns:
- the value of the
itemrecord component
-