Package net.minecraft.client.font
Record Class BitmapFont.BitmapFontGlyph
java.lang.Object
java.lang.Record
net.minecraft.client.font.BitmapFont.BitmapFontGlyph
- Record Components:
scaleFactor
-image
-x
-y
-width
-height
-advance
-ascent
-
- All Implemented Interfaces:
Glyph
- Enclosing class:
BitmapFont
@Environment(CLIENT)
private static record BitmapFont.BitmapFontGlyph(float scaleFactor, NativeImage image, int x, int y, int width, int height, int advance, int ascent)
extends Record
implements Glyph
- Mappings:
Namespace Name official ejn$b
intermediary net/minecraft/class_386$class_388
named net/minecraft/client/font/BitmapFont$BitmapFontGlyph
official a
intermediary comp_603
named scaleFactor
official b
intermediary comp_604
named image
official c
intermediary comp_605
named x
official d
intermediary comp_606
named y
official e
intermediary comp_607
named width
official f
intermediary comp_608
named height
official g
intermediary comp_609
named advance
official h
intermediary comp_610
named ascent
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.font.Glyph
Glyph.EmptyGlyph
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
The field for theadvance
record component.private final int
The field for theascent
record component.private final int
The field for theheight
record component.private final NativeImage
The field for theimage
record component.private final float
The field for thescaleFactor
record component.private final int
The field for thewidth
record component.private final int
The field for thex
record component.private final int
The field for they
record component. -
Constructor Summary
ConstructorDescriptionBitmapFontGlyph
(float scaleFactor, NativeImage image, int x, int y, int width, int height, int advance, int ascent) Creates an instance of aBitmapFontGlyph
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
advance()
Returns the value of theadvance
record component.int
ascent()
Returns the value of theascent
record component.bake
(Function<RenderableGlyph, GlyphRenderer> glyphRendererGetter) final boolean
Indicates whether some other object is "equal to" this one.float
final int
hashCode()
Returns a hash code value for this object.int
height()
Returns the value of theheight
record component.image()
Returns the value of theimage
record component.float
Returns the value of thescaleFactor
record component.final String
toString()
Returns a string representation of this record class.int
width()
Returns the value of thewidth
record component.int
x()
Returns the value of thex
record component.int
y()
Returns the value of they
record component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.client.font.Glyph
getAdvance, getBoldOffset, getShadowOffset
-
Field Details
-
scaleFactor
private final float scaleFactorThe field for thescaleFactor
record component. -
image
The field for theimage
record component. -
x
private final int xThe field for thex
record component. -
y
private final int yThe field for they
record component. -
width
private final int widthThe field for thewidth
record component. -
height
private final int heightThe field for theheight
record component. -
advance
private final int advanceThe field for theadvance
record component. -
ascent
private final int ascentThe field for theascent
record component.
-
-
Constructor Details
-
BitmapFontGlyph
BitmapFontGlyph(float scaleFactor, NativeImage image, int x, int y, int width, int height, int advance, int ascent) Creates an instance of aBitmapFontGlyph
record class.- Parameters:
scaleFactor
- the value for thescaleFactor
record componentimage
- the value for theimage
record componentx
- the value for thex
record componenty
- the value for they
record componentwidth
- the value for thewidth
record componentheight
- the value for theheight
record componentadvance
- the value for theadvance
record componentascent
- the value for theascent
record component
-
-
Method Details
-
getAdvance
public float getAdvance()- Specified by:
getAdvance
in interfaceGlyph
-
bake
- Specified by:
bake
in interfaceGlyph
- Mappings:
Namespace Name Mixin selector official bake
Ldys;bake(Ljava/util/function/Function;)Leji;
intermediary bake
Lnet/minecraft/class_379;bake(Ljava/util/function/Function;)Lnet/minecraft/class_382;
named bake
Lnet/minecraft/client/font/Glyph;bake(Ljava/util/function/Function;)Lnet/minecraft/client/font/GlyphRenderer;
-
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. -
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. -
equals
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
scaleFactor
public float scaleFactor()Returns the value of thescaleFactor
record component.- Returns:
- the value of the
scaleFactor
record component
-
image
Returns the value of theimage
record component.- Returns:
- the value of the
image
record component
-
x
public int x()Returns the value of thex
record component.- Returns:
- the value of the
x
record component
-
y
public int y()Returns the value of they
record component.- Returns:
- the value of the
y
record component
-
width
public int width()Returns the value of thewidth
record component.- Returns:
- the value of the
width
record component
-
height
public int height()Returns the value of theheight
record component.- Returns:
- the value of the
height
record component
-
advance
public int advance()Returns the value of theadvance
record component.- Returns:
- the value of the
advance
record component
-
ascent
public int ascent()Returns the value of theascent
record component.- Returns:
- the value of the
ascent
record component
-