Package net.minecraft.client.gui.fonts
Enum WhiteGlyph
- java.lang.Object
-
- java.lang.Enum<WhiteGlyph>
-
- net.minecraft.client.gui.fonts.WhiteGlyph
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<WhiteGlyph>,IGlyph,IGlyphInfo
public enum WhiteGlyph extends java.lang.Enum<WhiteGlyph> implements IGlyphInfo
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Field Summary
Fields Modifier and Type Field Description private static NativeImageIMAGE_DATA
-
Constructor Summary
Constructors Modifier Constructor Description privateWhiteGlyph()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description floatgetAdvance()floatgetOversample()intgetPixelHeight()intgetPixelWidth()booleanisColored()voidupload(int p_211573_1_, int p_211573_2_)static WhiteGlyphvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static WhiteGlyph[]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 WhiteGlyph INSTANCE
-
-
Field Detail
-
IMAGE_DATA
private static final NativeImage IMAGE_DATA
-
-
Method Detail
-
values
public static WhiteGlyph[] 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 (WhiteGlyph c : WhiteGlyph.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WhiteGlyph 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:
getPixelWidthin interfaceIGlyphInfo
-
getPixelHeight
public int getPixelHeight()
- Specified by:
getPixelHeightin interfaceIGlyphInfo
-
getAdvance
public float getAdvance()
- Specified by:
getAdvancein interfaceIGlyph
-
getOversample
public float getOversample()
- Specified by:
getOversamplein interfaceIGlyphInfo
-
upload
public void upload(int p_211573_1_, int p_211573_2_)- Specified by:
uploadin interfaceIGlyphInfo
-
isColored
public boolean isColored()
- Specified by:
isColoredin interfaceIGlyphInfo
-
-