记录类 BitmapProvider.Glyph

java.lang.Object
java.lang.Record
net.minecraft.client.gui.font.providers.BitmapProvider.Glyph
所有已实现的接口:
GlyphInfo
封闭类:
BitmapProvider

static record BitmapProvider.Glyph(float scale, NativeImage image, int offsetX, int offsetY, int width, int height, int advance, int ascent) extends Record implements GlyphInfo
  • 嵌套类概要

    从接口继承的嵌套类/接口 com.mojang.blaze3d.font.GlyphInfo

    GlyphInfo.SpaceGlyphInfo
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    private final int
    advance 记录组件的字段。
    private final int
    ascent 记录组件的字段。
    private final int
    height 记录组件的字段。
    private final NativeImage
    image 记录组件的字段。
    private final int
    offsetX 记录组件的字段。
    private final int
    offsetY 记录组件的字段。
    private final float
    scale 记录组件的字段。
    private final int
    width 记录组件的字段。
  • 构造器概要

    构造器
    构造器
    说明
    Glyph(float scale, NativeImage image, int offsetX, int offsetY, int width, int height, int advance, int ascent)
    创建 Glyph 记录类的实例。
  • 方法概要

    修饰符和类型
    方法
    说明
    int
    返回 advance 记录组件的值。
    int
    返回 ascent 记录组件的值。
     
    final boolean
    指示某个其他对象是否“等于”此对象。
    float
     
    final int
    返回此对象的哈希代码值。
    int
    返回 height 记录组件的值。
    返回 image 记录组件的值。
    int
    返回 offsetX 记录组件的值。
    int
    返回 offsetY 记录组件的值。
    float
    返回 scale 记录组件的值。
    final String
    返回此记录类的字符串表示形式。
    int
    返回 width 记录组件的值。

    从类继承的方法 java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    从接口继承的方法 com.mojang.blaze3d.font.GlyphInfo

    getAdvance, getBoldOffset, getShadowOffset
  • 字段详细资料

    • scale

      private final float scale
      scale 记录组件的字段。
    • image

      private final NativeImage image
      image 记录组件的字段。
    • offsetX

      private final int offsetX
      offsetX 记录组件的字段。
    • offsetY

      private final int offsetY
      offsetY 记录组件的字段。
    • width

      private final int width
      width 记录组件的字段。
    • height

      private final int height
      height 记录组件的字段。
    • advance

      private final int advance
      advance 记录组件的字段。
    • ascent

      private final int ascent
      ascent 记录组件的字段。
  • 构造器详细资料

    • Glyph

      Glyph(float scale, NativeImage image, int offsetX, int offsetY, int width, int height, int advance, int ascent)
      创建 Glyph 记录类的实例。
      参数:
      scale - scale 记录组件的值
      image - image 记录组件的值
      offsetX - offsetX 记录组件的值
      offsetY - offsetY 记录组件的值
      width - width 记录组件的值
      height - height 记录组件的值
      advance - advance 记录组件的值
      ascent - ascent 记录组件的值
  • 方法详细资料

    • getAdvance

      public float getAdvance()
      指定者:
      getAdvance 在接口中 GlyphInfo
    • bake

      public BakedGlyph bake(Function<SheetGlyphInfo,BakedGlyph> p_232640_)
      指定者:
      bake 在接口中 GlyphInfo
    • toString

      public final String toString()
      返回此记录类的字符串表示形式。此表示形式包含类的名称,后跟每个记录组件的名称和值。
      指定者:
      toString 在类中 Record
      返回:
      此对象的字符串表示形式
    • hashCode

      public final int hashCode()
      返回此对象的哈希代码值。此值派生自每个记录组件的哈希代码。
      指定者:
      hashCode 在类中 Record
      返回:
      此对象的哈希代码值
    • equals

      public final boolean equals(Object o)
      指示某个其他对象是否“等于”此对象。如果两个对象属于同一个类,而且所有记录组件都相等,则这两个对象相等。 使用 Objects::equals(Object,Object) 对参考组件进行比较;使用 '==' 对基元组件进行比较
      指定者:
      equals 在类中 Record
      参数:
      o - 要与之进行比较的对象
      返回:
      如果此对象与 o 参数相同,则为 true;否则为 false
    • scale

      public float scale()
      返回 scale 记录组件的值。
      返回:
      scale 记录组件的值
    • image

      public NativeImage image()
      返回 image 记录组件的值。
      返回:
      image 记录组件的值
    • offsetX

      public int offsetX()
      返回 offsetX 记录组件的值。
      返回:
      offsetX 记录组件的值
    • offsetY

      public int offsetY()
      返回 offsetY 记录组件的值。
      返回:
      offsetY 记录组件的值
    • width

      public int width()
      返回 width 记录组件的值。
      返回:
      width 记录组件的值
    • height

      public int height()
      返回 height 记录组件的值。
      返回:
      height 记录组件的值
    • advance

      public int advance()
      返回 advance 记录组件的值。
      返回:
      advance 记录组件的值
    • ascent

      public int ascent()
      返回 ascent 记录组件的值。
      返回:
      ascent 记录组件的值