类 LevelInfo


  • public final class LevelInfo
    extends Object
    Mappings:
    Namespace Name
    official bvv
    intermediary net/minecraft/class_1940
    named net/minecraft/world/level/LevelInfo
    • 字段详细资料

      • name

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

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

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

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

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

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

        private final DataPackSettings dataPackSettings
        Mappings:
        Namespace Name Mixin selector
        official g Lbvv;g:Lbve;
        intermediary field_25403 Lnet/minecraft/class_1940;field_25403:Lnet/minecraft/class_5359;
        named dataPackSettings Lnet/minecraft/world/level/LevelInfo;dataPackSettings:Lnet/minecraft/resource/DataPackSettings;
    • 构造器详细资料

      • LevelInfo

        public LevelInfo​(String name,
                         GameMode gameMode,
                         boolean hardcore,
                         Difficulty difficulty,
                         boolean allowCommands,
                         GameRules gameRules,
                         DataPackSettings dataPackSettings)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lbvv;<init>(Ljava/lang/String;Lbvo;ZLard;ZLbvn;Lbve;)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_5359;)V
        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/DataPackSettings;)V
    • 方法详细资料

      • fromDynamic

        public static LevelInfo fromDynamic​(com.mojang.serialization.Dynamic<?> dynamic,
                                            DataPackSettings dataPackSettings)
        Mappings:
        Namespace Name Mixin selector
        official a Lbvv;a(Lcom/mojang/serialization/Dynamic;Lbve;)Lbvv;
        intermediary method_28383 Lnet/minecraft/class_1940;method_28383(Lcom/mojang/serialization/Dynamic;Lnet/minecraft/class_5359;)Lnet/minecraft/class_1940;
        named fromDynamic Lnet/minecraft/world/level/LevelInfo;fromDynamic(Lcom/mojang/serialization/Dynamic;Lnet/minecraft/resource/DataPackSettings;)Lnet/minecraft/world/level/LevelInfo;
      • getLevelName

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

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

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

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

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

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

        public DataPackSettings getDataPackSettings()
        Mappings:
        Namespace Name Mixin selector
        official g Lbvv;g()Lbve;
        intermediary method_29558 Lnet/minecraft/class_1940;method_29558()Lnet/minecraft/class_5359;
        named getDataPackSettings Lnet/minecraft/world/level/LevelInfo;getDataPackSettings()Lnet/minecraft/resource/DataPackSettings;
      • withGameMode

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

        public LevelInfo withDifficulty​(Difficulty difficulty)
        Mappings:
        Namespace Name Mixin selector
        official a Lbvv;a(Lard;)Lbvv;
        intermediary method_28381 Lnet/minecraft/class_1940;method_28381(Lnet/minecraft/class_1267;)Lnet/minecraft/class_1940;
        named withDifficulty Lnet/minecraft/world/level/LevelInfo;withDifficulty(Lnet/minecraft/world/Difficulty;)Lnet/minecraft/world/level/LevelInfo;
      • withDataPackSettings

        public LevelInfo withDataPackSettings​(DataPackSettings dataPackSettings)
        Mappings:
        Namespace Name Mixin selector
        official a Lbvv;a(Lbve;)Lbvv;
        intermediary method_29557 Lnet/minecraft/class_1940;method_29557(Lnet/minecraft/class_5359;)Lnet/minecraft/class_1940;
        named withDataPackSettings Lnet/minecraft/world/level/LevelInfo;withDataPackSettings(Lnet/minecraft/resource/DataPackSettings;)Lnet/minecraft/world/level/LevelInfo;
      • withCopiedGameRules

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