Enum Class LevelInfo.GameMode

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

public static enum LevelInfo.GameMode extends Enum<LevelInfo.GameMode>
Mappings:
Namespace Name
official ahw$a
intermediary net/minecraft/class_1156$class_1157
named net/minecraft/world/level/LevelInfo$GameMode
  • Enum Constant Details

    • NOT_SET

      public static final LevelInfo.GameMode NOT_SET
      Mappings:
      Namespace Name Mixin selector
      official a Lahw$a;a:Lahw$a;
      intermediary field_4572 Lnet/minecraft/class_1156$class_1157;field_4572:Lnet/minecraft/class_1156$class_1157;
      named NOT_SET Lnet/minecraft/world/level/LevelInfo$GameMode;NOT_SET:Lnet/minecraft/world/level/LevelInfo$GameMode;
    • SURVIVAL

      public static final LevelInfo.GameMode SURVIVAL
      Mappings:
      Namespace Name Mixin selector
      official b Lahw$a;b:Lahw$a;
      intermediary field_4573 Lnet/minecraft/class_1156$class_1157;field_4573:Lnet/minecraft/class_1156$class_1157;
      named SURVIVAL Lnet/minecraft/world/level/LevelInfo$GameMode;SURVIVAL:Lnet/minecraft/world/level/LevelInfo$GameMode;
    • CREATIVE

      public static final LevelInfo.GameMode CREATIVE
      Mappings:
      Namespace Name Mixin selector
      official c Lahw$a;c:Lahw$a;
      intermediary field_4574 Lnet/minecraft/class_1156$class_1157;field_4574:Lnet/minecraft/class_1156$class_1157;
      named CREATIVE Lnet/minecraft/world/level/LevelInfo$GameMode;CREATIVE:Lnet/minecraft/world/level/LevelInfo$GameMode;
    • ADVENTURE

      public static final LevelInfo.GameMode ADVENTURE
      Mappings:
      Namespace Name Mixin selector
      official d Lahw$a;d:Lahw$a;
      intermediary field_4575 Lnet/minecraft/class_1156$class_1157;field_4575:Lnet/minecraft/class_1156$class_1157;
      named ADVENTURE Lnet/minecraft/world/level/LevelInfo$GameMode;ADVENTURE:Lnet/minecraft/world/level/LevelInfo$GameMode;
    • SPECTATOR

      public static final LevelInfo.GameMode SPECTATOR
      Mappings:
      Namespace Name Mixin selector
      official e Lahw$a;e:Lahw$a;
      intermediary field_9216 Lnet/minecraft/class_1156$class_1157;field_9216:Lnet/minecraft/class_1156$class_1157;
      named SPECTATOR Lnet/minecraft/world/level/LevelInfo$GameMode;SPECTATOR:Lnet/minecraft/world/level/LevelInfo$GameMode;
  • Field Details

    • id

      int id
      Mappings:
      Namespace Name Mixin selector
      official f Lahw$a;f:I
      intermediary field_4576 Lnet/minecraft/class_1156$class_1157;field_4576:I
      named id Lnet/minecraft/world/level/LevelInfo$GameMode;id:I
    • name

      String name
      Mappings:
      Namespace Name Mixin selector
      official g Lahw$a;g:Ljava/lang/String;
      intermediary field_4577 Lnet/minecraft/class_1156$class_1157;field_4577:Ljava/lang/String;
      named name Lnet/minecraft/world/level/LevelInfo$GameMode;name:Ljava/lang/String;
    • field_12437

      String field_12437
      Mappings:
      Namespace Name Mixin selector
      official h Lahw$a;h:Ljava/lang/String;
      intermediary field_12437 Lnet/minecraft/class_1156$class_1157;field_12437:Ljava/lang/String;
      named field_12437 Lnet/minecraft/world/level/LevelInfo$GameMode;field_12437:Ljava/lang/String;
  • Constructor Details

    • GameMode

      private GameMode(int int2, String string, String string2)
  • Method Details

    • values

      public static LevelInfo.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 LevelInfo.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
    • getId

      public int getId()
      Mappings:
      Namespace Name Mixin selector
      official a Lahw$a;a()I
      intermediary method_3763 Lnet/minecraft/class_1156$class_1157;method_3763()I
      named getId Lnet/minecraft/world/level/LevelInfo$GameMode;getId()I
    • getName

      public String getName()
      Mappings:
      Namespace Name Mixin selector
      official b Lahw$a;b()Ljava/lang/String;
      intermediary method_3767 Lnet/minecraft/class_1156$class_1157;method_3767()Ljava/lang/String;
      named getName Lnet/minecraft/world/level/LevelInfo$GameMode;getName()Ljava/lang/String;
    • setAbilitites

      public void setAbilitites(PlayerAbilities abilities)
      Mappings:
      Namespace Name Mixin selector
      official a Lahw$a;a(Lzh;)V
      intermediary method_3766 Lnet/minecraft/class_1156$class_1157;method_3766(Lnet/minecraft/class_986;)V
      named setAbilitites Lnet/minecraft/world/level/LevelInfo$GameMode;setAbilitites(Lnet/minecraft/entity/player/PlayerAbilities;)V
    • shouldLimitWorldModification

      public boolean shouldLimitWorldModification()
      Mappings:
      Namespace Name Mixin selector
      official c Lahw$a;c()Z
      intermediary method_3768 Lnet/minecraft/class_1156$class_1157;method_3768()Z
      named shouldLimitWorldModification Lnet/minecraft/world/level/LevelInfo$GameMode;shouldLimitWorldModification()Z
    • isCreative

      public boolean isCreative()
      Mappings:
      Namespace Name Mixin selector
      official d Lahw$a;d()Z
      intermediary method_3769 Lnet/minecraft/class_1156$class_1157;method_3769()Z
      named isCreative Lnet/minecraft/world/level/LevelInfo$GameMode;isCreative()Z
    • isSurvivalLike

      public boolean isSurvivalLike()
      Mappings:
      Namespace Name Mixin selector
      official e Lahw$a;e()Z
      intermediary method_3770 Lnet/minecraft/class_1156$class_1157;method_3770()Z
      named isSurvivalLike Lnet/minecraft/world/level/LevelInfo$GameMode;isSurvivalLike()Z
    • byId

      public static LevelInfo.GameMode byId(int id)
      Mappings:
      Namespace Name Mixin selector
      official a Lahw$a;a(I)Lahw$a;
      intermediary method_3764 Lnet/minecraft/class_1156$class_1157;method_3764(I)Lnet/minecraft/class_1156$class_1157;
      named byId Lnet/minecraft/world/level/LevelInfo$GameMode;byId(I)Lnet/minecraft/world/level/LevelInfo$GameMode;
    • method_11494

      public static LevelInfo.GameMode method_11494(int int2, LevelInfo.GameMode gameMode)
      Mappings:
      Namespace Name Mixin selector
      official a Lahw$a;a(ILahw$a;)Lahw$a;
      intermediary method_11494 Lnet/minecraft/class_1156$class_1157;method_11494(ILnet/minecraft/class_1156$class_1157;)Lnet/minecraft/class_1156$class_1157;
      named method_11494 Lnet/minecraft/world/level/LevelInfo$GameMode;method_11494(ILnet/minecraft/world/level/LevelInfo$GameMode;)Lnet/minecraft/world/level/LevelInfo$GameMode;
    • byName

      @Environment(CLIENT) public static LevelInfo.GameMode byName(String name)
      Mappings:
      Namespace Name Mixin selector
      official a Lahw$a;a(Ljava/lang/String;)Lahw$a;
      intermediary method_3765 Lnet/minecraft/class_1156$class_1157;method_3765(Ljava/lang/String;)Lnet/minecraft/class_1156$class_1157;
      named byName Lnet/minecraft/world/level/LevelInfo$GameMode;byName(Ljava/lang/String;)Lnet/minecraft/world/level/LevelInfo$GameMode;
    • method_11495

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