Enum LevelInfo.GameMode

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

public static enum LevelInfo.GameMode
extends Enum<LevelInfo.GameMode>
Mappings:
Namespace Name
official adp$a
intermediary net/minecraft/class_102$class_103
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 Ladp$a;a:Ladp$a;
      intermediary field_303 Lnet/minecraft/class_102$class_103;field_303:Lnet/minecraft/class_102$class_103;
      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 Ladp$a;b:Ladp$a;
      intermediary field_304 Lnet/minecraft/class_102$class_103;field_304:Lnet/minecraft/class_102$class_103;
      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 Ladp$a;c:Ladp$a;
      intermediary field_305 Lnet/minecraft/class_102$class_103;field_305:Lnet/minecraft/class_102$class_103;
      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 Ladp$a;d:Ladp$a;
      intermediary field_306 Lnet/minecraft/class_102$class_103;field_306:Lnet/minecraft/class_102$class_103;
      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 Ladp$a;e:Ladp$a;
      intermediary field_307 Lnet/minecraft/class_102$class_103;field_307:Lnet/minecraft/class_102$class_103;
      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 Ladp$a;f:I
      intermediary field_308 Lnet/minecraft/class_102$class_103;field_308:I
      named id Lnet/minecraft/world/level/LevelInfo$GameMode;id:I
    • name

      String name
      Mappings:
      Namespace Name Mixin selector
      official g Ladp$a;g:Ljava/lang/String;
      intermediary field_309 Lnet/minecraft/class_102$class_103;field_309:Ljava/lang/String;
      named name Lnet/minecraft/world/level/LevelInfo$GameMode;name:Ljava/lang/String;
  • Constructor Details

    • GameMode

      private GameMode​(int id, String name)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ladp$a;<init>(Ljava/lang/String;IILjava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_102$class_103;<init>(Ljava/lang/String;IILjava/lang/String;)V
      named <init> Lnet/minecraft/world/level/LevelInfo$GameMode;<init>(Ljava/lang/String;IILjava/lang/String;)V
  • Method Details

    • values

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

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

      public int getId()
      Mappings:
      Namespace Name Mixin selector
      official a Ladp$a;a()I
      intermediary method_469 Lnet/minecraft/class_102$class_103;method_469()I
      named getId Lnet/minecraft/world/level/LevelInfo$GameMode;getId()I
    • getName

      public String getName()
      Mappings:
      Namespace Name Mixin selector
      official b Ladp$a;b()Ljava/lang/String;
      intermediary method_473 Lnet/minecraft/class_102$class_103;method_473()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 Ladp$a;a(Lwl;)V
      intermediary method_472 Lnet/minecraft/class_102$class_103;method_472(Lnet/minecraft/class_1961;)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 Ladp$a;c()Z
      intermediary method_474 Lnet/minecraft/class_102$class_103;method_474()Z
      named shouldLimitWorldModification Lnet/minecraft/world/level/LevelInfo$GameMode;shouldLimitWorldModification()Z
    • isCreative

      public boolean isCreative()
      Mappings:
      Namespace Name Mixin selector
      official d Ladp$a;d()Z
      intermediary method_475 Lnet/minecraft/class_102$class_103;method_475()Z
      named isCreative Lnet/minecraft/world/level/LevelInfo$GameMode;isCreative()Z
    • isSurvivalLike

      public boolean isSurvivalLike()
      Mappings:
      Namespace Name Mixin selector
      official e Ladp$a;e()Z
      intermediary method_476 Lnet/minecraft/class_102$class_103;method_476()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 Ladp$a;a(I)Ladp$a;
      intermediary method_470 Lnet/minecraft/class_102$class_103;method_470(I)Lnet/minecraft/class_102$class_103;
      named byId Lnet/minecraft/world/level/LevelInfo$GameMode;byId(I)Lnet/minecraft/world/level/LevelInfo$GameMode;
    • byName

      @Environment(CLIENT) public static LevelInfo.GameMode byName​(String name)
      Mappings:
      Namespace Name Mixin selector
      official a Ladp$a;a(Ljava/lang/String;)Ladp$a;
      intermediary method_471 Lnet/minecraft/class_102$class_103;method_471(Ljava/lang/String;)Lnet/minecraft/class_102$class_103;
      named byName Lnet/minecraft/world/level/LevelInfo$GameMode;byName(Ljava/lang/String;)Lnet/minecraft/world/level/LevelInfo$GameMode;