Package net.minecraft.client.audio
Enum MusicTicker.MusicType
- java.lang.Object
-
- java.lang.Enum<MusicTicker.MusicType>
-
- net.minecraft.client.audio.MusicTicker.MusicType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MusicTicker.MusicType>
- Enclosing class:
- MusicTicker
public static enum MusicTicker.MusicType extends java.lang.Enum<MusicTicker.MusicType>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getMaxDelay()
int
getMinDelay()
ResourceLocation
getMusicLocation()
static MusicTicker.MusicType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MusicTicker.MusicType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MENU
public static final MusicTicker.MusicType MENU
-
GAME
public static final MusicTicker.MusicType GAME
-
CREATIVE
public static final MusicTicker.MusicType CREATIVE
-
CREDITS
public static final MusicTicker.MusicType CREDITS
-
NETHER
public static final MusicTicker.MusicType NETHER
-
END_BOSS
public static final MusicTicker.MusicType END_BOSS
-
END
public static final MusicTicker.MusicType END
-
-
Method Detail
-
values
public static MusicTicker.MusicType[] 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 (MusicTicker.MusicType c : MusicTicker.MusicType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MusicTicker.MusicType 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
-
getMusicLocation
public ResourceLocation getMusicLocation()
-
getMinDelay
public int getMinDelay()
-
getMaxDelay
public int getMaxDelay()
-
-