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_10306
intermediary net/minecraft/class_10302$class_10306
official ddi$d
named item
intermediary comp_3273
official f
  • Field Details

    • item

      private final RegistryEntry<Item> item
      The field for the item record component.
    • field_54685

      public static final com.mojang.serialization.MapCodec<class_10302.class_10306> field_54685
      Mappings:
      Namespace Name Mixin selector
      named field_54685 Lnet/minecraft/class_10302$class_10306;field_54685:Lcom/mojang/serialization/MapCodec;
      intermediary field_54685 Lnet/minecraft/class_10302$class_10306;field_54685:Lcom/mojang/serialization/MapCodec;
      official c Lddi$d;c:Lcom/mojang/serialization/MapCodec;
    • field_54686

      public static final PacketCodec<RegistryByteBuf,class_10302.class_10306> field_54686
      Mappings:
      Namespace Name Mixin selector
      named field_54686 Lnet/minecraft/class_10302$class_10306;field_54686:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_54686 Lnet/minecraft/class_10302$class_10306;field_54686:Lnet/minecraft/class_9139;
      official d Lddi$d;d:Lzt;
    • field_54687

      public static final class_10302.class_10312<class_10302.class_10306> field_54687
      Mappings:
      Namespace Name Mixin selector
      named field_54687 Lnet/minecraft/class_10302$class_10306;field_54687:Lnet/minecraft/class_10302$class_10312;
      intermediary field_54687 Lnet/minecraft/class_10302$class_10306;field_54687:Lnet/minecraft/class_10302$class_10312;
      official e Lddi$d;e:Lddi$j;
  • Constructor Details

    • class_10306

      public class_10306(Item item)
    • class_10306

      public class_10306(RegistryEntry<Item> registryEntry)
  • Method Details

    • method_64736

      Specified by:
      method_64736 in interface class_10302
      Mappings:
      Namespace Name Mixin selector
      named method_64736 Lnet/minecraft/class_10302;method_64736()Lnet/minecraft/class_10302$class_10312;
      intermediary method_64736 Lnet/minecraft/class_10302;method_64736()Lnet/minecraft/class_10302$class_10312;
      official a Lddi;a()Lddi$j;
    • method_64739

      public void method_64739(class_10302.class_10308 class_10308, class_10302.class_10309 class_10309)
      Specified by:
      method_64739 in interface class_10302
      Mappings:
      Namespace Name Mixin selector
      named method_64739 Lnet/minecraft/class_10302;method_64739(Lnet/minecraft/class_10302$class_10308;Lnet/minecraft/class_10302$class_10309;)V
      intermediary method_64739 Lnet/minecraft/class_10302;method_64739(Lnet/minecraft/class_10302$class_10308;Lnet/minecraft/class_10302$class_10309;)V
      official a Lddi;a(Lddi$f;Lddi$g;)V
    • method_64737

      public boolean method_64737(FeatureSet featureSet)
      Specified by:
      method_64737 in interface class_10302
      Mappings:
      Namespace Name Mixin selector
      named method_64737 Lnet/minecraft/class_10302;method_64737(Lnet/minecraft/resource/featuretoggle/FeatureSet;)Z
      intermediary method_64737 Lnet/minecraft/class_10302;method_64737(Lnet/minecraft/class_7699;)Z
      official a Lddi;a(Lcso;)Z
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • item

      public RegistryEntry<Item> item()
      Returns the value of the item record component.
      Returns:
      the value of the item record component