Record Class AtlasTextObjectContents

java.lang.Object
java.lang.Record
net.minecraft.text.object.AtlasTextObjectContents
Record Components:
atlas -
sprite -
All Implemented Interfaces:
TextObjectContents

public record AtlasTextObjectContents(Identifier atlas, Identifier sprite) extends Record implements TextObjectContents
Mappings:
Namespace Name
named net/minecraft/text/object/AtlasTextObjectContents
intermediary net/minecraft/class_11723
official zo
named atlas
intermediary comp_4592
official c
named sprite
intermediary comp_4593
official d
  • Field Details

    • atlas

      private final Identifier atlas
      The field for the atlas record component.
    • sprite

      private final Identifier sprite
      The field for the sprite record component.
    • DEFAULT_ATLAS

      public static final Identifier DEFAULT_ATLAS
      Mappings:
      Namespace Name Mixin selector
      named DEFAULT_ATLAS Lnet/minecraft/text/object/AtlasTextObjectContents;DEFAULT_ATLAS:Lnet/minecraft/util/Identifier;
      intermediary field_61976 Lnet/minecraft/class_11723;field_61976:Lnet/minecraft/class_2960;
      official a Lzo;a:Lamj;
    • CODEC

      public static final com.mojang.serialization.MapCodec<AtlasTextObjectContents> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/text/object/AtlasTextObjectContents;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_61977 Lnet/minecraft/class_11723;field_61977:Lcom/mojang/serialization/MapCodec;
      official b Lzo;b:Lcom/mojang/serialization/MapCodec;
  • Constructor Details

    • AtlasTextObjectContents

      public AtlasTextObjectContents(Identifier identifier, Identifier identifier2)
  • Method Details

    • getCodec

      public com.mojang.serialization.MapCodec<AtlasTextObjectContents> getCodec()
      Specified by:
      getCodec in interface TextObjectContents
      Mappings:
      Namespace Name Mixin selector
      named getCodec Lnet/minecraft/text/object/TextObjectContents;getCodec()Lcom/mojang/serialization/MapCodec;
      intermediary method_74067 Lnet/minecraft/class_11724;method_74067()Lcom/mojang/serialization/MapCodec;
      official a Lzp;a()Lcom/mojang/serialization/MapCodec;
    • spriteSource

      public StyleSpriteSource spriteSource()
      Specified by:
      spriteSource in interface TextObjectContents
      Mappings:
      Namespace Name Mixin selector
      named spriteSource Lnet/minecraft/text/object/TextObjectContents;spriteSource()Lnet/minecraft/text/StyleSpriteSource;
      intermediary method_74068 Lnet/minecraft/class_11724;method_74068()Lnet/minecraft/class_11719;
      official b Lzp;b()Lyc;
    • getShortIdString

      private static String getShortIdString(Identifier id)
      Mappings:
      Namespace Name Mixin selector
      named getShortIdString Lnet/minecraft/text/object/AtlasTextObjectContents;getShortIdString(Lnet/minecraft/util/Identifier;)Ljava/lang/String;
      intermediary method_73176 Lnet/minecraft/class_11723;method_73176(Lnet/minecraft/class_2960;)Ljava/lang/String;
      official a Lzo;a(Lamj;)Ljava/lang/String;
    • asText

      public String asText()
      Specified by:
      asText in interface TextObjectContents
      Mappings:
      Namespace Name Mixin selector
      named asText Lnet/minecraft/text/object/TextObjectContents;asText()Ljava/lang/String;
      intermediary method_73178 Lnet/minecraft/class_11724;method_73178()Ljava/lang/String;
      official c Lzp;c()Ljava/lang/String;
    • 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.
    • atlas

      public Identifier atlas()
      Returns the value of the atlas record component.
      Returns:
      the value of the atlas record component
    • sprite

      public Identifier sprite()
      Returns the value of the sprite record component.
      Returns:
      the value of the sprite record component