|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<EnumGameType>
net.minecraft.src.EnumGameType
public enum EnumGameType
Enum Constant Summary | |
---|---|
ADVENTURE
|
|
CREATIVE
|
|
NOT_SET
|
|
SURVIVAL
|
Method Summary | |
---|---|
void |
configurePlayerCapabilities(PlayerCapabilities par1PlayerCapabilities)
Configures the player capabilities based on the game type |
boolean |
func_77144_e()
|
static EnumGameType |
getByID(int par0)
Returns the game type with the specified ID, or SURVIVAL if none found. |
static EnumGameType |
getByName(String par0Str)
|
int |
getID()
Returns the ID of this game type |
String |
getName()
Returns the name of this game type |
boolean |
isAdventure()
Returns true if this is the ADVENTURE game type |
boolean |
isCreative()
Returns true if this is the CREATIVE game type |
static EnumGameType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static EnumGameType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final EnumGameType NOT_SET
public static final EnumGameType SURVIVAL
public static final EnumGameType CREATIVE
public static final EnumGameType ADVENTURE
Method Detail |
---|
public static EnumGameType[] values()
for (EnumGameType c : EnumGameType.values()) System.out.println(c);
public static EnumGameType valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic int getID()
public String getName()
public void configurePlayerCapabilities(PlayerCapabilities par1PlayerCapabilities)
public boolean isAdventure()
public boolean isCreative()
public boolean func_77144_e()
public static EnumGameType getByID(int par0)
public static EnumGameType getByName(String par0Str)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |