Record Class GuiResourceMetadata

java.lang.Object
java.lang.Record
net.minecraft.client.resource.metadata.GuiResourceMetadata
Record Components:
scaling -

@Environment(CLIENT) public record GuiResourceMetadata(Scaling scaling) extends Record
Mappings:
Namespace Name
named net/minecraft/client/resource/metadata/GuiResourceMetadata
intermediary net/minecraft/class_8689
official hdc
named scaling
intermediary comp_1636
official d
  • Field Details

    • scaling

      private final Scaling scaling
      The field for the scaling record component.
    • DEFAULT

      public static final GuiResourceMetadata DEFAULT
      Mappings:
      Namespace Name Mixin selector
      named DEFAULT Lnet/minecraft/client/resource/metadata/GuiResourceMetadata;DEFAULT:Lnet/minecraft/client/resource/metadata/GuiResourceMetadata;
      intermediary field_45645 Lnet/minecraft/class_8689;field_45645:Lnet/minecraft/class_8689;
      official a Lhdc;a:Lhdc;
    • CODEC

      public static final com.mojang.serialization.Codec<GuiResourceMetadata> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/client/resource/metadata/GuiResourceMetadata;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_45646 Lnet/minecraft/class_8689;field_45646:Lcom/mojang/serialization/Codec;
      official b Lhdc;b:Lcom/mojang/serialization/Codec;
    • SERIALIZER

      public static final ResourceMetadataSerializer<GuiResourceMetadata> SERIALIZER
      Mappings:
      Namespace Name Mixin selector
      named SERIALIZER Lnet/minecraft/client/resource/metadata/GuiResourceMetadata;SERIALIZER:Lnet/minecraft/resource/metadata/ResourceMetadataSerializer;
      intermediary field_45647 Lnet/minecraft/class_8689;field_45647:Lnet/minecraft/class_7677;
      official c Lhdc;c:Lauu;
  • Constructor Details

    • GuiResourceMetadata

      public GuiResourceMetadata(Scaling scaling)
      Creates an instance of a GuiResourceMetadata record class.
      Parameters:
      scaling - the value for the scaling record component
  • Method Details

    • 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.
    • scaling

      public Scaling scaling()
      Returns the value of the scaling record component.
      Returns:
      the value of the scaling record component