Package net.minecraft.client.gui.fonts
Enum DefaultGlyph
- java.lang.Object
-
- java.lang.Enum<DefaultGlyph>
-
- net.minecraft.client.gui.fonts.DefaultGlyph
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<DefaultGlyph>
,IGlyph
,IGlyphInfo
public enum DefaultGlyph extends java.lang.Enum<DefaultGlyph> implements IGlyphInfo
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Field Summary
Fields Modifier and Type Field Description private static NativeImage
IMAGE_DATA
-
Constructor Summary
Constructors Modifier Constructor Description private
DefaultGlyph()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description float
getAdvance()
float
getOversample()
int
getPixelHeight()
int
getPixelWidth()
boolean
isColored()
void
upload(int p_211573_1_, int p_211573_2_)
static DefaultGlyph
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static DefaultGlyph[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, 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 Detail
-
INSTANCE
public static final DefaultGlyph INSTANCE
-
-
Field Detail
-
IMAGE_DATA
private static final NativeImage IMAGE_DATA
-
-
Method Detail
-
values
public static DefaultGlyph[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DefaultGlyph c : DefaultGlyph.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DefaultGlyph valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- 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
-
-