Enum Class EnumGameType

java.lang.Object
java.lang.Enum<EnumGameType>
net.minecraft.src.EnumGameType
All Implemented Interfaces:
Serializable, Comparable<EnumGameType>, Constable

public enum EnumGameType extends Enum<EnumGameType>
  • Enum Constant Details

  • Method Details

    • values

      public static EnumGameType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static EnumGameType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getID

      public int getID()
      Returns the ID of this game type
    • getName

      public String getName()
      Returns the name of this game type
    • configurePlayerCapabilities

      public void configurePlayerCapabilities(PlayerCapabilities par1PlayerCapabilities)
      Configures the player capabilities based on the game type
    • isAdventure

      public boolean isAdventure()
      Returns true if this is the ADVENTURE game type
    • isCreative

      public boolean isCreative()
      Returns true if this is the CREATIVE game type
    • isSurvivalOrAdventure

      public boolean isSurvivalOrAdventure()
      Returns true if this is the SURVIVAL or ADVENTURE game type
    • getByID

      public static EnumGameType getByID(int par0)
      Returns the game type with the specified ID, or SURVIVAL if none found. Args: id
    • getByName

      public static EnumGameType getByName(String par0Str)
      Returns the game type with the specified name, or SURVIVAL if none found. This is case sensitive. Args: name