Package net.minecraft.client.gui.fonts
Enum Class DefaultGlyph
- All Implemented Interfaces:
Serializable
,Comparable<DefaultGlyph>
,Constable
,IGlyph
,IGlyphInfo
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
float
int
int
boolean
void
upload
(int p_211573_1_, int p_211573_2_) static DefaultGlyph
Returns the enum constant of this class with the specified name.static DefaultGlyph[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface net.minecraft.client.gui.fonts.IGlyph
getAdvance, getBearingX, getBoldOffset, getShadowOffset
Methods inherited from interface net.minecraft.client.gui.fonts.IGlyphInfo
getBearingY, getDown, getLeft, getRight, getUp
-
Enum Constant Details
-
INSTANCE
-
-
Field Details
-
IMAGE_DATA
-
-
Constructor Details
-
DefaultGlyph
private DefaultGlyph()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getPixelWidth
public int getPixelWidth()- Specified by:
getPixelWidth
in interfaceIGlyphInfo
-
getPixelHeight
public int getPixelHeight()- Specified by:
getPixelHeight
in interfaceIGlyphInfo
-
getAdvance
public float getAdvance()- Specified by:
getAdvance
in interfaceIGlyph
-
getOversample
public float getOversample()- Specified by:
getOversample
in interfaceIGlyphInfo
-
upload
public void upload(int p_211573_1_, int p_211573_2_) - Specified by:
upload
in interfaceIGlyphInfo
-
isColored
public boolean isColored()- Specified by:
isColored
in interfaceIGlyphInfo
-