Record Class SpriteAtlasGlyphs.BakedGlyph

java.lang.Object
java.lang.Record
net.minecraft.client.texture.SpriteAtlasGlyphs.BakedGlyph
Record Components:
bakedGlyph -
All Implemented Interfaces:
OnceBakedGlyph
Enclosing class:
SpriteAtlasGlyphs

@Environment(CLIENT) private static record SpriteAtlasGlyphs.BakedGlyph(BakedGlyph bakedGlyph) extends Record implements OnceBakedGlyph
Mappings:
Namespace Name
named net/minecraft/client/texture/SpriteAtlasGlyphs$BakedGlyph
intermediary net/minecraft/class_11714$class_11716
official gdj$b
named bakedGlyph
intermediary comp_4585
official d
  • Field Details

    • bakedGlyph

      private final BakedGlyph bakedGlyph
      The field for the bakedGlyph record component.
    • ADVANCE

      public static final float ADVANCE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named ADVANCE Lnet/minecraft/client/texture/SpriteAtlasGlyphs$BakedGlyph;ADVANCE:F
      intermediary field_61931 Lnet/minecraft/class_11714$class_11716;field_61931:F
      official a Lgdj$b;a:F
    • MAX_X

      public static final float MAX_X
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named MAX_X Lnet/minecraft/client/texture/SpriteAtlasGlyphs$BakedGlyph;MAX_X:F
      intermediary field_61932 Lnet/minecraft/class_11714$class_11716;field_61932:F
      official b Lgdj$b;b:F
    • glyph

      public static final Glyph glyph
      A stub implementation for Glyph, which only requires the glyph's advance.
      Mappings:
      Namespace Name Mixin selector
      named glyph Lnet/minecraft/client/texture/SpriteAtlasGlyphs$BakedGlyph;glyph:Lnet/minecraft/client/font/Glyph;
      intermediary field_61933 Lnet/minecraft/class_11714$class_11716;field_61933:Lnet/minecraft/class_379;
      official c Lgdj$b;c:Lfnf;
  • Constructor Details

    • BakedGlyph

      BakedGlyph(BakedGlyph bakedGlyph)
      Creates an instance of a BakedGlyph record class.
      Parameters:
      bakedGlyph - the value for the bakedGlyph record component
  • Method Details

    • createBakedGlyph

      static BakedGlyph createBakedGlyph(TextRenderLayerSet renderLayerSet, GpuTextureView textureView, Sprite sprite)
      Mappings:
      Namespace Name Mixin selector
      named createBakedGlyph Lnet/minecraft/client/texture/SpriteAtlasGlyphs$BakedGlyph;createBakedGlyph(Lnet/minecraft/client/font/TextRenderLayerSet;Lcom/mojang/blaze3d/textures/GpuTextureView;Lnet/minecraft/client/texture/Sprite;)Lnet/minecraft/client/font/BakedGlyph;
      intermediary method_73145 Lnet/minecraft/class_11714$class_11716;method_73145(Lnet/minecraft/class_8538;Lcom/mojang/blaze3d/textures/GpuTextureView;Lnet/minecraft/class_1058;)Lnet/minecraft/class_382;
      official a Lgdj$b;a(Lgdp;Lcom/mojang/blaze3d/textures/GpuTextureView;Lhvo;)Lgdt;
    • glyph

      public Glyph glyph()
      Specified by:
      glyph in interface OnceBakedGlyph
      Mappings:
      Namespace Name Mixin selector
      named glyph Lnet/minecraft/client/font/OnceBakedGlyph;glyph()Lnet/minecraft/client/font/Glyph;
      intermediary method_72790 Lnet/minecraft/class_11643;method_72790()Lnet/minecraft/class_379;
      official a Lgds;a()Lfnf;
    • 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.
    • bakedGlyph

      public BakedGlyph bakedGlyph()
      Returns the value of the bakedGlyph record component.
      Specified by:
      bakedGlyph in interface OnceBakedGlyph
      Returns:
      the value of the bakedGlyph record component