Enum Class GameMode

java.lang.Object
java.lang.Enum<GameMode>
com.soulfiremc.grpc.generated.GameMode
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<GameMode>, Constable

@Generated public enum GameMode extends Enum<GameMode> implements com.google.protobuf.ProtocolMessageEnum
Minecraft game modes that determine player capabilities.
Protobuf enum soulfire.v1.GameMode
  • Enum Constant Details

    • GAME_MODE_UNSPECIFIED

      public static final GameMode GAME_MODE_UNSPECIFIED
      Unknown or not yet determined game mode.
      
      GAME_MODE_UNSPECIFIED = 0;
    • GAME_MODE_SURVIVAL

      public static final GameMode GAME_MODE_SURVIVAL
      Survival mode: resource gathering, health/hunger management, mob combat.
      
      GAME_MODE_SURVIVAL = 1;
    • GAME_MODE_CREATIVE

      public static final GameMode GAME_MODE_CREATIVE
      Creative mode: unlimited resources, instant block breaking, flying, invulnerability.
      
      GAME_MODE_CREATIVE = 2;
    • GAME_MODE_ADVENTURE

      public static final GameMode GAME_MODE_ADVENTURE
      Adventure mode: like survival but cannot break/place blocks without proper tools.
      
      GAME_MODE_ADVENTURE = 3;
    • GAME_MODE_SPECTATOR

      public static final GameMode GAME_MODE_SPECTATOR
      Spectator mode: invisible, can fly through blocks, cannot interact with the world.
      
      GAME_MODE_SPECTATOR = 4;
    • UNRECOGNIZED

      public static final GameMode UNRECOGNIZED
  • Field Details

    • GAME_MODE_UNSPECIFIED_VALUE

      public static final int GAME_MODE_UNSPECIFIED_VALUE
      Unknown or not yet determined game mode.
      
      GAME_MODE_UNSPECIFIED = 0;
      See Also:
    • GAME_MODE_SURVIVAL_VALUE

      public static final int GAME_MODE_SURVIVAL_VALUE
      Survival mode: resource gathering, health/hunger management, mob combat.
      
      GAME_MODE_SURVIVAL = 1;
      See Also:
    • GAME_MODE_CREATIVE_VALUE

      public static final int GAME_MODE_CREATIVE_VALUE
      Creative mode: unlimited resources, instant block breaking, flying, invulnerability.
      
      GAME_MODE_CREATIVE = 2;
      See Also:
    • GAME_MODE_ADVENTURE_VALUE

      public static final int GAME_MODE_ADVENTURE_VALUE
      Adventure mode: like survival but cannot break/place blocks without proper tools.
      
      GAME_MODE_ADVENTURE = 3;
      See Also:
    • GAME_MODE_SPECTATOR_VALUE

      public static final int GAME_MODE_SPECTATOR_VALUE
      Spectator mode: invisible, can fly through blocks, cannot interact with the world.
      
      GAME_MODE_SPECTATOR = 4;
      See Also:
  • Method Details

    • values

      public static GameMode[] 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 GameMode 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
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static GameMode valueOf(int value)
      Deprecated.
      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:
      value - 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
    • forNumber

      public static GameMode forNumber(int value)
      Parameters:
      value - The numeric wire value of the corresponding enum entry.
      Returns:
      The enum associated with the given numeric wire value.
    • internalGetValueMap

      public static com.google.protobuf.Internal.EnumLiteMap<GameMode> internalGetValueMap()
    • getValueDescriptor

      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
      Specified by:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptor

      public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static GameMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
      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:
      desc - 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