Class LevelInfo

java.lang.Object
net.minecraft.world.level.LevelInfo

public final class LevelInfo extends Object
Mappings:
Namespace Name
named net/minecraft/world/level/LevelInfo
intermediary net/minecraft/class_1940
official dck
  • Field Details

    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      named name Lnet/minecraft/world/level/LevelInfo;name:Ljava/lang/String;
      intermediary field_24105 Lnet/minecraft/class_1940;field_24105:Ljava/lang/String;
      official a Ldck;a:Ljava/lang/String;
    • gameMode

      private final GameMode gameMode
      Mappings:
      Namespace Name Mixin selector
      named gameMode Lnet/minecraft/world/level/LevelInfo;gameMode:Lnet/minecraft/world/GameMode;
      intermediary field_9257 Lnet/minecraft/class_1940;field_9257:Lnet/minecraft/class_1934;
      official b Ldck;b:Ldcd;
    • hardcore

      private final boolean hardcore
      Mappings:
      Namespace Name Mixin selector
      named hardcore Lnet/minecraft/world/level/LevelInfo;hardcore:Z
      intermediary field_9262 Lnet/minecraft/class_1940;field_9262:Z
      official c Ldck;c:Z
    • difficulty

      private final Difficulty difficulty
      Mappings:
      Namespace Name Mixin selector
      named difficulty Lnet/minecraft/world/level/LevelInfo;difficulty:Lnet/minecraft/world/Difficulty;
      intermediary field_24106 Lnet/minecraft/class_1940;field_24106:Lnet/minecraft/class_1267;
      official d Ldck;d:Lbqe;
    • allowCommands

      private final boolean allowCommands
      Mappings:
      Namespace Name Mixin selector
      named allowCommands Lnet/minecraft/world/level/LevelInfo;allowCommands:Z
      intermediary field_9261 Lnet/minecraft/class_1940;field_9261:Z
      official e Ldck;e:Z
    • gameRules

      private final GameRules gameRules
      Mappings:
      Namespace Name Mixin selector
      named gameRules Lnet/minecraft/world/level/LevelInfo;gameRules:Lnet/minecraft/world/GameRules;
      intermediary field_24107 Lnet/minecraft/class_1940;field_24107:Lnet/minecraft/class_1928;
      official f Ldck;f:Ldcc;
    • dataConfiguration

      private final DataConfiguration dataConfiguration
      Mappings:
      Namespace Name Mixin selector
      named dataConfiguration Lnet/minecraft/world/level/LevelInfo;dataConfiguration:Lnet/minecraft/resource/DataConfiguration;
      intermediary field_25403 Lnet/minecraft/class_1940;field_25403:Lnet/minecraft/class_7712;
      official g Ldck;g:Lddb;
  • Constructor Details

    • LevelInfo

      public LevelInfo(String name, GameMode gameMode, boolean hardcore, Difficulty difficulty, boolean allowCommands, GameRules gameRules, DataConfiguration dataConfiguration)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/level/LevelInfo;<init>(Ljava/lang/String;Lnet/minecraft/world/GameMode;ZLnet/minecraft/world/Difficulty;ZLnet/minecraft/world/GameRules;Lnet/minecraft/resource/DataConfiguration;)V
      intermediary <init> Lnet/minecraft/class_1940;<init>(Ljava/lang/String;Lnet/minecraft/class_1934;ZLnet/minecraft/class_1267;ZLnet/minecraft/class_1928;Lnet/minecraft/class_7712;)V
      official <init> Ldck;<init>(Ljava/lang/String;Ldcd;ZLbqe;ZLdcc;Lddb;)V
  • Method Details

    • fromDynamic

      public static LevelInfo fromDynamic(com.mojang.serialization.Dynamic<?> dynamic, DataConfiguration dataConfiguration)
      Mappings:
      Namespace Name Mixin selector
      named fromDynamic Lnet/minecraft/world/level/LevelInfo;fromDynamic(Lcom/mojang/serialization/Dynamic;Lnet/minecraft/resource/DataConfiguration;)Lnet/minecraft/world/level/LevelInfo;
      intermediary method_28383 Lnet/minecraft/class_1940;method_28383(Lcom/mojang/serialization/Dynamic;Lnet/minecraft/class_7712;)Lnet/minecraft/class_1940;
      official a Ldck;a(Lcom/mojang/serialization/Dynamic;Lddb;)Ldck;
    • getLevelName

      public String getLevelName()
      Mappings:
      Namespace Name Mixin selector
      named getLevelName Lnet/minecraft/world/level/LevelInfo;getLevelName()Ljava/lang/String;
      intermediary method_27339 Lnet/minecraft/class_1940;method_27339()Ljava/lang/String;
      official a Ldck;a()Ljava/lang/String;
    • getGameMode

      public GameMode getGameMode()
      Mappings:
      Namespace Name Mixin selector
      named getGameMode Lnet/minecraft/world/level/LevelInfo;getGameMode()Lnet/minecraft/world/GameMode;
      intermediary method_8574 Lnet/minecraft/class_1940;method_8574()Lnet/minecraft/class_1934;
      official b Ldck;b()Ldcd;
    • isHardcore

      public boolean isHardcore()
      Mappings:
      Namespace Name Mixin selector
      named isHardcore Lnet/minecraft/world/level/LevelInfo;isHardcore()Z
      intermediary method_8583 Lnet/minecraft/class_1940;method_8583()Z
      official c Ldck;c()Z
    • getDifficulty

      public Difficulty getDifficulty()
      Mappings:
      Namespace Name Mixin selector
      named getDifficulty Lnet/minecraft/world/level/LevelInfo;getDifficulty()Lnet/minecraft/world/Difficulty;
      intermediary method_27340 Lnet/minecraft/class_1940;method_27340()Lnet/minecraft/class_1267;
      official d Ldck;d()Lbqe;
    • areCommandsAllowed

      public boolean areCommandsAllowed()
      Mappings:
      Namespace Name Mixin selector
      named areCommandsAllowed Lnet/minecraft/world/level/LevelInfo;areCommandsAllowed()Z
      intermediary method_8582 Lnet/minecraft/class_1940;method_8582()Z
      official e Ldck;e()Z
    • getGameRules

      public GameRules getGameRules()
      Mappings:
      Namespace Name Mixin selector
      named getGameRules Lnet/minecraft/world/level/LevelInfo;getGameRules()Lnet/minecraft/world/GameRules;
      intermediary method_27341 Lnet/minecraft/class_1940;method_27341()Lnet/minecraft/class_1928;
      official f Ldck;f()Ldcc;
    • getDataConfiguration

      public DataConfiguration getDataConfiguration()
      Mappings:
      Namespace Name Mixin selector
      named getDataConfiguration Lnet/minecraft/world/level/LevelInfo;getDataConfiguration()Lnet/minecraft/resource/DataConfiguration;
      intermediary method_29558 Lnet/minecraft/class_1940;method_29558()Lnet/minecraft/class_7712;
      official g Ldck;g()Lddb;
    • withGameMode

      public LevelInfo withGameMode(GameMode mode)
      Mappings:
      Namespace Name Mixin selector
      named withGameMode Lnet/minecraft/world/level/LevelInfo;withGameMode(Lnet/minecraft/world/GameMode;)Lnet/minecraft/world/level/LevelInfo;
      intermediary method_28382 Lnet/minecraft/class_1940;method_28382(Lnet/minecraft/class_1934;)Lnet/minecraft/class_1940;
      official a Ldck;a(Ldcd;)Ldck;
    • withDifficulty

      public LevelInfo withDifficulty(Difficulty difficulty)
      Mappings:
      Namespace Name Mixin selector
      named withDifficulty Lnet/minecraft/world/level/LevelInfo;withDifficulty(Lnet/minecraft/world/Difficulty;)Lnet/minecraft/world/level/LevelInfo;
      intermediary method_28381 Lnet/minecraft/class_1940;method_28381(Lnet/minecraft/class_1267;)Lnet/minecraft/class_1940;
      official a Ldck;a(Lbqe;)Ldck;
    • withDataConfiguration

      public LevelInfo withDataConfiguration(DataConfiguration dataConfiguration)
      Mappings:
      Namespace Name Mixin selector
      named withDataConfiguration Lnet/minecraft/world/level/LevelInfo;withDataConfiguration(Lnet/minecraft/resource/DataConfiguration;)Lnet/minecraft/world/level/LevelInfo;
      intermediary method_29557 Lnet/minecraft/class_1940;method_29557(Lnet/minecraft/class_7712;)Lnet/minecraft/class_1940;
      official a Ldck;a(Lddb;)Ldck;
    • withCopiedGameRules

      public LevelInfo withCopiedGameRules()
      Mappings:
      Namespace Name Mixin selector
      named withCopiedGameRules Lnet/minecraft/world/level/LevelInfo;withCopiedGameRules()Lnet/minecraft/world/level/LevelInfo;
      intermediary method_28385 Lnet/minecraft/class_1940;method_28385()Lnet/minecraft/class_1940;
      official h Ldck;h()Ldck;