Package net.minecraft.client.shader
Enum ShaderLoader.ShaderType
- java.lang.Object
-
- java.lang.Enum<ShaderLoader.ShaderType>
-
- net.minecraft.client.shader.ShaderLoader.ShaderType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ShaderLoader.ShaderType>
- Enclosing class:
- ShaderLoader
public static enum ShaderLoader.ShaderType extends java.lang.Enum<ShaderLoader.ShaderType>
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringextensionprivate intglTypeprivate java.lang.Stringnameprivate java.util.Map<java.lang.String,ShaderLoader>programs
-
Constructor Summary
Constructors Modifier Constructor Description privateShaderType(java.lang.String p_i45090_3_, java.lang.String p_i45090_4_, int p_i45090_5_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetExtension()private intgetGlType()java.lang.StringgetName()java.util.Map<java.lang.String,ShaderLoader>getPrograms()static ShaderLoader.ShaderTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ShaderLoader.ShaderType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VERTEX
public static final ShaderLoader.ShaderType VERTEX
-
FRAGMENT
public static final ShaderLoader.ShaderType FRAGMENT
-
-
Field Detail
-
name
private final java.lang.String name
-
extension
private final java.lang.String extension
-
glType
private final int glType
-
programs
private final java.util.Map<java.lang.String,ShaderLoader> programs
-
-
Method Detail
-
values
public static ShaderLoader.ShaderType[] 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 (ShaderLoader.ShaderType c : ShaderLoader.ShaderType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ShaderLoader.ShaderType 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
-
getName
public java.lang.String getName()
-
getExtension
public java.lang.String getExtension()
-
getGlType
private int getGlType()
-
getPrograms
public java.util.Map<java.lang.String,ShaderLoader> getPrograms()
-
-