Class LevelInfo

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

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

    • seed

      private final long seed
      Mappings:
      Namespace Name Mixin selector
      official a Ladp;a:J
      intermediary field_295 Lnet/minecraft/class_102;field_295:J
      named seed Lnet/minecraft/world/level/LevelInfo;seed:J
    • gameMode

      private final LevelInfo.GameMode gameMode
      Mappings:
      Namespace Name Mixin selector
      official b Ladp;b:Ladp$a;
      intermediary field_296 Lnet/minecraft/class_102;field_296:Lnet/minecraft/class_102$class_103;
      named gameMode Lnet/minecraft/world/level/LevelInfo;gameMode:Lnet/minecraft/world/level/LevelInfo$GameMode;
    • structures

      private final boolean structures
      Mappings:
      Namespace Name Mixin selector
      official c Ladp;c:Z
      intermediary field_297 Lnet/minecraft/class_102;field_297:Z
      named structures Lnet/minecraft/world/level/LevelInfo;structures:Z
    • hardcore

      private final boolean hardcore
      Mappings:
      Namespace Name Mixin selector
      official d Ladp;d:Z
      intermediary field_298 Lnet/minecraft/class_102;field_298:Z
      named hardcore Lnet/minecraft/world/level/LevelInfo;hardcore:Z
    • generatorType

      private final LevelGeneratorType generatorType
      Mappings:
      Namespace Name Mixin selector
      official e Ladp;e:Ladr;
      intermediary field_299 Lnet/minecraft/class_102;field_299:Lnet/minecraft/class_105;
      named generatorType Lnet/minecraft/world/level/LevelInfo;generatorType:Lnet/minecraft/world/level/LevelGeneratorType;
    • commands

      private boolean commands
      Mappings:
      Namespace Name Mixin selector
      official f Ladp;f:Z
      intermediary field_300 Lnet/minecraft/class_102;field_300:Z
      named commands Lnet/minecraft/world/level/LevelInfo;commands:Z
    • bonusChest

      private boolean bonusChest
      Mappings:
      Namespace Name Mixin selector
      official g Ladp;g:Z
      intermediary field_301 Lnet/minecraft/class_102;field_301:Z
      named bonusChest Lnet/minecraft/world/level/LevelInfo;bonusChest:Z
    • generatorOptions

      private String generatorOptions
      Mappings:
      Namespace Name Mixin selector
      official h Ladp;h:Ljava/lang/String;
      intermediary field_302 Lnet/minecraft/class_102;field_302:Ljava/lang/String;
      named generatorOptions Lnet/minecraft/world/level/LevelInfo;generatorOptions:Ljava/lang/String;
  • Constructor Details

    • LevelInfo

      public LevelInfo​(long seed, LevelInfo.GameMode gameMode, boolean structures, boolean hardcore, LevelGeneratorType generatorType)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ladp;<init>(JLadp$a;ZZLadr;)V
      intermediary <init> Lnet/minecraft/class_102;<init>(JLnet/minecraft/class_102$class_103;ZZLnet/minecraft/class_105;)V
      named <init> Lnet/minecraft/world/level/LevelInfo;<init>(JLnet/minecraft/world/level/LevelInfo$GameMode;ZZLnet/minecraft/world/level/LevelGeneratorType;)V
    • LevelInfo

      public LevelInfo​(LevelProperties levelProperties)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ladp;<init>(Lato;)V
      intermediary <init> Lnet/minecraft/class_102;<init>(Lnet/minecraft/class_634;)V
      named <init> Lnet/minecraft/world/level/LevelInfo;<init>(Lnet/minecraft/world/level/LevelProperties;)V
  • Method Details

    • setBonusChest

      public LevelInfo setBonusChest()
      Mappings:
      Namespace Name Mixin selector
      official a Ladp;a()Ladp;
      intermediary method_457 Lnet/minecraft/class_102;method_457()Lnet/minecraft/class_102;
      named setBonusChest Lnet/minecraft/world/level/LevelInfo;setBonusChest()Lnet/minecraft/world/level/LevelInfo;
    • enableCommands

      @Environment(CLIENT) public LevelInfo enableCommands()
      Mappings:
      Namespace Name Mixin selector
      official b Ladp;b()Ladp;
      intermediary method_460 Lnet/minecraft/class_102;method_460()Lnet/minecraft/class_102;
      named enableCommands Lnet/minecraft/world/level/LevelInfo;enableCommands()Lnet/minecraft/world/level/LevelInfo;
    • setGeneratorOptions

      public LevelInfo setGeneratorOptions​(String generatorOptions)
      Mappings:
      Namespace Name Mixin selector
      official a Ladp;a(Ljava/lang/String;)Ladp;
      intermediary method_459 Lnet/minecraft/class_102;method_459(Ljava/lang/String;)Lnet/minecraft/class_102;
      named setGeneratorOptions Lnet/minecraft/world/level/LevelInfo;setGeneratorOptions(Ljava/lang/String;)Lnet/minecraft/world/level/LevelInfo;
    • hasBonusChest

      public boolean hasBonusChest()
      Mappings:
      Namespace Name Mixin selector
      official c Ladp;c()Z
      intermediary method_461 Lnet/minecraft/class_102;method_461()Z
      named hasBonusChest Lnet/minecraft/world/level/LevelInfo;hasBonusChest()Z
    • getSeed

      public long getSeed()
      Mappings:
      Namespace Name Mixin selector
      official d Ladp;d()J
      intermediary method_462 Lnet/minecraft/class_102;method_462()J
      named getSeed Lnet/minecraft/world/level/LevelInfo;getSeed()J
    • getGameMode

      public LevelInfo.GameMode getGameMode()
      Mappings:
      Namespace Name Mixin selector
      official e Ladp;e()Ladp$a;
      intermediary method_463 Lnet/minecraft/class_102;method_463()Lnet/minecraft/class_102$class_103;
      named getGameMode Lnet/minecraft/world/level/LevelInfo;getGameMode()Lnet/minecraft/world/level/LevelInfo$GameMode;
    • isHardcore

      public boolean isHardcore()
      Mappings:
      Namespace Name Mixin selector
      official f Ladp;f()Z
      intermediary method_464 Lnet/minecraft/class_102;method_464()Z
      named isHardcore Lnet/minecraft/world/level/LevelInfo;isHardcore()Z
    • hasStructures

      public boolean hasStructures()
      Mappings:
      Namespace Name Mixin selector
      official g Ladp;g()Z
      intermediary method_465 Lnet/minecraft/class_102;method_465()Z
      named hasStructures Lnet/minecraft/world/level/LevelInfo;hasStructures()Z
    • getGeneratorType

      public LevelGeneratorType getGeneratorType()
      Mappings:
      Namespace Name Mixin selector
      official h Ladp;h()Ladr;
      intermediary method_466 Lnet/minecraft/class_102;method_466()Lnet/minecraft/class_105;
      named getGeneratorType Lnet/minecraft/world/level/LevelInfo;getGeneratorType()Lnet/minecraft/world/level/LevelGeneratorType;
    • allowCommands

      public boolean allowCommands()
      Mappings:
      Namespace Name Mixin selector
      official i Ladp;i()Z
      intermediary method_467 Lnet/minecraft/class_102;method_467()Z
      named allowCommands Lnet/minecraft/world/level/LevelInfo;allowCommands()Z
    • getGameModeById

      public static LevelInfo.GameMode getGameModeById​(int id)
      Mappings:
      Namespace Name Mixin selector
      official a Ladp;a(I)Ladp$a;
      intermediary method_458 Lnet/minecraft/class_102;method_458(I)Lnet/minecraft/class_102$class_103;
      named getGameModeById Lnet/minecraft/world/level/LevelInfo;getGameModeById(I)Lnet/minecraft/world/level/LevelInfo$GameMode;
    • getGeneratorOptions

      public String getGeneratorOptions()
      Mappings:
      Namespace Name Mixin selector
      official j Ladp;j()Ljava/lang/String;
      intermediary method_468 Lnet/minecraft/class_102;method_468()Ljava/lang/String;
      named getGeneratorOptions Lnet/minecraft/world/level/LevelInfo;getGeneratorOptions()Ljava/lang/String;