Record Class GlyphRenderTypes

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

public record GlyphRenderTypes(RenderType normal, RenderType seeThrough, RenderType polygonOffset, RenderType normalBlur, RenderType seeThroughBlur, RenderType polygonOffsetBlur) 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.
    • normalBlur

      private final RenderType normalBlur
      The field for the normalBlur record component.
    • seeThroughBlur

      private final RenderType seeThroughBlur
      The field for the seeThroughBlur record component.
    • polygonOffsetBlur

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

  • 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_)
    • select

      public RenderType select(Font.DisplayMode p_285259_, boolean blur)
      Neo: returns the RenderType to use for the given Font.DisplayMode and blur setting
    • 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
    • normalBlur

      public RenderType normalBlur()
      Returns the value of the normalBlur record component.
      Returns:
      the value of the normalBlur record component
    • seeThroughBlur

      public RenderType seeThroughBlur()
      Returns the value of the seeThroughBlur record component.
      Returns:
      the value of the seeThroughBlur record component
    • polygonOffsetBlur

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