Enum Class GameMode

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

public enum GameMode extends Enum<GameMode>
Mappings:
Namespace Name
official ajq
intermediary net/minecraft/class_1157
named net/minecraft/world/GameMode
  • Enum Constant Details

    • NOT_SET

      public static final GameMode NOT_SET
      Mappings:
      Namespace Name Mixin selector
      official a Lajq;a:Lajq;
      intermediary field_4572 Lnet/minecraft/class_1157;field_4572:Lnet/minecraft/class_1157;
      named NOT_SET Lnet/minecraft/world/GameMode;NOT_SET:Lnet/minecraft/world/GameMode;
    • SURVIVAL

      public static final GameMode SURVIVAL
      Mappings:
      Namespace Name Mixin selector
      official b Lajq;b:Lajq;
      intermediary field_4573 Lnet/minecraft/class_1157;field_4573:Lnet/minecraft/class_1157;
      named SURVIVAL Lnet/minecraft/world/GameMode;SURVIVAL:Lnet/minecraft/world/GameMode;
    • CREATIVE

      public static final GameMode CREATIVE
      Mappings:
      Namespace Name Mixin selector
      official c Lajq;c:Lajq;
      intermediary field_4574 Lnet/minecraft/class_1157;field_4574:Lnet/minecraft/class_1157;
      named CREATIVE Lnet/minecraft/world/GameMode;CREATIVE:Lnet/minecraft/world/GameMode;
    • ADVENTURE

      public static final GameMode ADVENTURE
      Mappings:
      Namespace Name Mixin selector
      official d Lajq;d:Lajq;
      intermediary field_4575 Lnet/minecraft/class_1157;field_4575:Lnet/minecraft/class_1157;
      named ADVENTURE Lnet/minecraft/world/GameMode;ADVENTURE:Lnet/minecraft/world/GameMode;
    • SPECTATOR

      public static final GameMode SPECTATOR
      Mappings:
      Namespace Name Mixin selector
      official e Lajq;e:Lajq;
      intermediary field_9216 Lnet/minecraft/class_1157;field_9216:Lnet/minecraft/class_1157;
      named SPECTATOR Lnet/minecraft/world/GameMode;SPECTATOR:Lnet/minecraft/world/GameMode;
  • Field Details

    • gameModeId

      int gameModeId
      Mappings:
      Namespace Name Mixin selector
      official f Lajq;f:I
      intermediary field_4576 Lnet/minecraft/class_1157;field_4576:I
      named gameModeId Lnet/minecraft/world/GameMode;gameModeId:I
    • gameModeName

      String gameModeName
      Mappings:
      Namespace Name Mixin selector
      official g Lajq;g:Ljava/lang/String;
      intermediary field_4577 Lnet/minecraft/class_1157;field_4577:Ljava/lang/String;
      named gameModeName Lnet/minecraft/world/GameMode;gameModeName:Ljava/lang/String;
    • field_12437

      String field_12437
      Mappings:
      Namespace Name Mixin selector
      official h Lajq;h:Ljava/lang/String;
      intermediary field_12437 Lnet/minecraft/class_1157;field_12437:Ljava/lang/String;
      named field_12437 Lnet/minecraft/world/GameMode;field_12437:Ljava/lang/String;
  • Constructor Details

    • GameMode

      private GameMode(int int2, String string, String string2)
  • 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
    • getGameModeId

      public int getGameModeId()
      Mappings:
      Namespace Name Mixin selector
      official a Lajq;a()I
      intermediary method_3763 Lnet/minecraft/class_1157;method_3763()I
      named getGameModeId Lnet/minecraft/world/GameMode;getGameModeId()I
    • getGameModeName

      public String getGameModeName()
      Mappings:
      Namespace Name Mixin selector
      official b Lajq;b()Ljava/lang/String;
      intermediary method_3767 Lnet/minecraft/class_1157;method_3767()Ljava/lang/String;
      named getGameModeName Lnet/minecraft/world/GameMode;getGameModeName()Ljava/lang/String;
    • gameModeAbilities

      public void gameModeAbilities(PlayerAbilities abilities)
      Mappings:
      Namespace Name Mixin selector
      official a Lajq;a(Laaw;)V
      intermediary method_3766 Lnet/minecraft/class_1157;method_3766(Lnet/minecraft/class_986;)V
      named gameModeAbilities Lnet/minecraft/world/GameMode;gameModeAbilities(Lnet/minecraft/entity/player/PlayerAbilities;)V
    • isAdventure

      public boolean isAdventure()
      Mappings:
      Namespace Name Mixin selector
      official c Lajq;c()Z
      intermediary method_3768 Lnet/minecraft/class_1157;method_3768()Z
      named isAdventure Lnet/minecraft/world/GameMode;isAdventure()Z
    • isCreative

      public boolean isCreative()
      Mappings:
      Namespace Name Mixin selector
      official d Lajq;d()Z
      intermediary method_3769 Lnet/minecraft/class_1157;method_3769()Z
      named isCreative Lnet/minecraft/world/GameMode;isCreative()Z
    • canBeDamaged

      public boolean canBeDamaged()
      Mappings:
      Namespace Name Mixin selector
      official e Lajq;e()Z
      intermediary method_3770 Lnet/minecraft/class_1157;method_3770()Z
      named canBeDamaged Lnet/minecraft/world/GameMode;canBeDamaged()Z
    • setGameModeWithId

      public static GameMode setGameModeWithId(int gamemode)
      Mappings:
      Namespace Name Mixin selector
      official a Lajq;a(I)Lajq;
      intermediary method_3764 Lnet/minecraft/class_1157;method_3764(I)Lnet/minecraft/class_1157;
      named setGameModeWithId Lnet/minecraft/world/GameMode;setGameModeWithId(I)Lnet/minecraft/world/GameMode;
    • method_11494

      public static GameMode method_11494(int int2, GameMode gameMode)
      Mappings:
      Namespace Name Mixin selector
      official a Lajq;a(ILajq;)Lajq;
      intermediary method_11494 Lnet/minecraft/class_1157;method_11494(ILnet/minecraft/class_1157;)Lnet/minecraft/class_1157;
      named method_11494 Lnet/minecraft/world/GameMode;method_11494(ILnet/minecraft/world/GameMode;)Lnet/minecraft/world/GameMode;
    • setGameModeWithString

      @Environment(CLIENT) public static GameMode setGameModeWithString(String gamemode)
      Mappings:
      Namespace Name Mixin selector
      official a Lajq;a(Ljava/lang/String;)Lajq;
      intermediary method_3765 Lnet/minecraft/class_1157;method_3765(Ljava/lang/String;)Lnet/minecraft/class_1157;
      named setGameModeWithString Lnet/minecraft/world/GameMode;setGameModeWithString(Ljava/lang/String;)Lnet/minecraft/world/GameMode;
    • method_11495

      public static GameMode method_11495(String string, GameMode gameMode)
      Mappings:
      Namespace Name Mixin selector
      official a Lajq;a(Ljava/lang/String;Lajq;)Lajq;
      intermediary method_11495 Lnet/minecraft/class_1157;method_11495(Ljava/lang/String;Lnet/minecraft/class_1157;)Lnet/minecraft/class_1157;
      named method_11495 Lnet/minecraft/world/GameMode;method_11495(Ljava/lang/String;Lnet/minecraft/world/GameMode;)Lnet/minecraft/world/GameMode;