Record Class GlyphRenderTypes

java.lang.Object
java.lang.Record
net.minecraft.client.gui.font.GlyphRenderTypes

public record GlyphRenderTypes(RenderType normal, RenderType seeThrough, RenderType polygonOffset) extends Record
  • Field Details

    • normal

      private final RenderType normal
      The field for the normal record component.
    • seeThrough

      private final RenderType seeThrough
      The field for the seeThrough record component.
    • polygonOffset

      private final RenderType polygonOffset
      The field for the polygonOffset record component.
  • Constructor Details

    • GlyphRenderTypes

      public GlyphRenderTypes(RenderType normal, RenderType seeThrough, RenderType polygonOffset)
      Creates an instance of a GlyphRenderTypes record class.
      Parameters:
      normal - the value for the normal record component
      seeThrough - the value for the seeThrough record component
      polygonOffset - the value for the polygonOffset record component
  • Method Details

    • createForIntensityTexture

      public static GlyphRenderTypes createForIntensityTexture(ResourceLocation p_285411_)
    • createForColorTexture

      public static GlyphRenderTypes createForColorTexture(ResourceLocation p_285486_)
    • select

      public RenderType select(Font.DisplayMode p_285259_)
    • 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 o)
      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:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • normal

      public RenderType normal()
      Returns the value of the normal record component.
      Returns:
      the value of the normal record component
    • seeThrough

      public RenderType seeThrough()
      Returns the value of the seeThrough record component.
      Returns:
      the value of the seeThrough record component
    • polygonOffset

      public RenderType polygonOffset()
      Returns the value of the polygonOffset record component.
      Returns:
      the value of the polygonOffset record component