Class LevelProperties

java.lang.Object
net.minecraft.world.level.LevelProperties
Direct Known Subclasses:
ReadOnlyLevelProperties

public class LevelProperties extends Object
Mappings:
Namespace Name
official axd
intermediary net/minecraft/class_100
named net/minecraft/world/level/LevelProperties
  • Field Details

    • seed

      private long seed
      Mappings:
      Namespace Name Mixin selector
      official a Laxd;a:J
      intermediary field_233 Lnet/minecraft/class_100;field_233:J
      named seed Lnet/minecraft/world/level/LevelProperties;seed:J
    • levelGeneratorType

      private LevelGeneratorType levelGeneratorType
      Mappings:
      Namespace Name Mixin selector
      official b Laxd;b:Lafx;
      intermediary field_234 Lnet/minecraft/class_100;field_234:Lnet/minecraft/class_1160;
      named levelGeneratorType Lnet/minecraft/world/level/LevelProperties;levelGeneratorType:Lnet/minecraft/world/level/LevelGeneratorType;
    • generatorOptions

      private String generatorOptions
      Mappings:
      Namespace Name Mixin selector
      official c Laxd;c:Ljava/lang/String;
      intermediary field_4985 Lnet/minecraft/class_100;field_4985:Ljava/lang/String;
      named generatorOptions Lnet/minecraft/world/level/LevelProperties;generatorOptions:Ljava/lang/String;
    • spawnX

      private int spawnX
      Mappings:
      Namespace Name Mixin selector
      official d Laxd;d:I
      intermediary field_235 Lnet/minecraft/class_100;field_235:I
      named spawnX Lnet/minecraft/world/level/LevelProperties;spawnX:I
    • spawnY

      private int spawnY
      Mappings:
      Namespace Name Mixin selector
      official e Laxd;e:I
      intermediary field_236 Lnet/minecraft/class_100;field_236:I
      named spawnY Lnet/minecraft/world/level/LevelProperties;spawnY:I
    • spawnZ

      private int spawnZ
      Mappings:
      Namespace Name Mixin selector
      official f Laxd;f:I
      intermediary field_237 Lnet/minecraft/class_100;field_237:I
      named spawnZ Lnet/minecraft/world/level/LevelProperties;spawnZ:I
    • time

      private long time
      Mappings:
      Namespace Name Mixin selector
      official g Laxd;g:J
      intermediary field_4986 Lnet/minecraft/class_100;field_4986:J
      named time Lnet/minecraft/world/level/LevelProperties;time:J
    • timeOfDay

      private long timeOfDay
      Mappings:
      Namespace Name Mixin selector
      official h Laxd;h:J
      intermediary field_238 Lnet/minecraft/class_100;field_238:J
      named timeOfDay Lnet/minecraft/world/level/LevelProperties;timeOfDay:J
    • lastPlayed

      private long lastPlayed
      Mappings:
      Namespace Name Mixin selector
      official i Laxd;i:J
      intermediary field_239 Lnet/minecraft/class_100;field_239:J
      named lastPlayed Lnet/minecraft/world/level/LevelProperties;lastPlayed:J
    • sizeOnDisk

      private long sizeOnDisk
      Mappings:
      Namespace Name Mixin selector
      official j Laxd;j:J
      intermediary field_240 Lnet/minecraft/class_100;field_240:J
      named sizeOnDisk Lnet/minecraft/world/level/LevelProperties;sizeOnDisk:J
    • playerNbt

      private NbtCompound playerNbt
      Mappings:
      Namespace Name Mixin selector
      official k Laxd;k:Ldg;
      intermediary field_241 Lnet/minecraft/class_100;field_241:Lnet/minecraft/class_322;
      named playerNbt Lnet/minecraft/world/level/LevelProperties;playerNbt:Lnet/minecraft/nbt/NbtCompound;
    • dimension

      private int dimension
      Mappings:
      Namespace Name Mixin selector
      official l Laxd;l:I
      intermediary field_242 Lnet/minecraft/class_100;field_242:I
      named dimension Lnet/minecraft/world/level/LevelProperties;dimension:I
    • levelName

      private String levelName
      Mappings:
      Namespace Name Mixin selector
      official m Laxd;m:Ljava/lang/String;
      intermediary field_243 Lnet/minecraft/class_100;field_243:Ljava/lang/String;
      named levelName Lnet/minecraft/world/level/LevelProperties;levelName:Ljava/lang/String;
    • version

      private int version
      Mappings:
      Namespace Name Mixin selector
      official n Laxd;n:I
      intermediary field_244 Lnet/minecraft/class_100;field_244:I
      named version Lnet/minecraft/world/level/LevelProperties;version:I
    • raining

      private boolean raining
      Mappings:
      Namespace Name Mixin selector
      official o Laxd;o:Z
      intermediary field_245 Lnet/minecraft/class_100;field_245:Z
      named raining Lnet/minecraft/world/level/LevelProperties;raining:Z
    • rainTime

      private int rainTime
      Mappings:
      Namespace Name Mixin selector
      official p Laxd;p:I
      intermediary field_246 Lnet/minecraft/class_100;field_246:I
      named rainTime Lnet/minecraft/world/level/LevelProperties;rainTime:I
    • thundering

      private boolean thundering
      Mappings:
      Namespace Name Mixin selector
      official q Laxd;q:Z
      intermediary field_247 Lnet/minecraft/class_100;field_247:Z
      named thundering Lnet/minecraft/world/level/LevelProperties;thundering:Z
    • thunderTime

      private int thunderTime
      Mappings:
      Namespace Name Mixin selector
      official r Laxd;r:I
      intermediary field_248 Lnet/minecraft/class_100;field_248:I
      named thunderTime Lnet/minecraft/world/level/LevelProperties;thunderTime:I
    • field_249

      private GameMode field_249
      Mappings:
      Namespace Name Mixin selector
      official s Laxd;s:Lafv;
      intermediary field_249 Lnet/minecraft/class_100;field_249:Lnet/minecraft/class_1157;
      named field_249 Lnet/minecraft/world/level/LevelProperties;field_249:Lnet/minecraft/world/GameMode;
    • structures

      private boolean structures
      Mappings:
      Namespace Name Mixin selector
      official t Laxd;t:Z
      intermediary field_250 Lnet/minecraft/class_100;field_250:Z
      named structures Lnet/minecraft/world/level/LevelProperties;structures:Z
    • hardcore

      private boolean hardcore
      Mappings:
      Namespace Name Mixin selector
      official u Laxd;u:Z
      intermediary field_251 Lnet/minecraft/class_100;field_251:Z
      named hardcore Lnet/minecraft/world/level/LevelProperties;hardcore:Z
    • allowCommands

      private boolean allowCommands
      Mappings:
      Namespace Name Mixin selector
      official v Laxd;v:Z
      intermediary field_252 Lnet/minecraft/class_100;field_252:Z
      named allowCommands Lnet/minecraft/world/level/LevelProperties;allowCommands:Z
    • initialized

      private boolean initialized
      Mappings:
      Namespace Name Mixin selector
      official w Laxd;w:Z
      intermediary field_253 Lnet/minecraft/class_100;field_253:Z
      named initialized Lnet/minecraft/world/level/LevelProperties;initialized:Z
    • gameRules

      private GameRuleManager gameRules
      Mappings:
      Namespace Name Mixin selector
      official x Laxd;x:Lafj;
      intermediary field_4987 Lnet/minecraft/class_100;field_4987:Lnet/minecraft/class_1439;
      named gameRules Lnet/minecraft/world/level/LevelProperties;gameRules:Lnet/minecraft/world/GameRuleManager;
  • Constructor Details

    • LevelProperties

      protected LevelProperties()
    • LevelProperties

      public LevelProperties(NbtCompound worldNbt)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laxd;<init>(Ldg;)V
      intermediary <init> Lnet/minecraft/class_100;<init>(Lnet/minecraft/class_322;)V
      named <init> Lnet/minecraft/world/level/LevelProperties;<init>(Lnet/minecraft/nbt/NbtCompound;)V
    • LevelProperties

      public LevelProperties(LevelInfo info, String name)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laxd;<init>(Lafu;Ljava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_100;<init>(Lnet/minecraft/class_1156;Ljava/lang/String;)V
      named <init> Lnet/minecraft/world/level/LevelProperties;<init>(Lnet/minecraft/world/level/LevelInfo;Ljava/lang/String;)V
    • LevelProperties

      public LevelProperties(LevelProperties copy)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laxd;<init>(Laxd;)V
      intermediary <init> Lnet/minecraft/class_100;<init>(Lnet/minecraft/class_100;)V
      named <init> Lnet/minecraft/world/level/LevelProperties;<init>(Lnet/minecraft/world/level/LevelProperties;)V
  • Method Details

    • toNbt

      public NbtCompound toNbt()
      Mappings:
      Namespace Name Mixin selector
      official a Laxd;a()Ldg;
      intermediary method_201 Lnet/minecraft/class_100;method_201()Lnet/minecraft/class_322;
      named toNbt Lnet/minecraft/world/level/LevelProperties;toNbt()Lnet/minecraft/nbt/NbtCompound;
    • toNbt

      public NbtCompound toNbt(NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official a Laxd;a(Ldg;)Ldg;
      intermediary method_204 Lnet/minecraft/class_100;method_204(Lnet/minecraft/class_322;)Lnet/minecraft/class_322;
      named toNbt Lnet/minecraft/world/level/LevelProperties;toNbt(Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/nbt/NbtCompound;
    • putNbt

      private void putNbt(NbtCompound worldNbt, NbtCompound playerData)
      Mappings:
      Namespace Name Mixin selector
      official a Laxd;a(Ldg;Ldg;)V
      intermediary method_205 Lnet/minecraft/class_100;method_205(Lnet/minecraft/class_322;Lnet/minecraft/class_322;)V
      named putNbt Lnet/minecraft/world/level/LevelProperties;putNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/nbt/NbtCompound;)V
    • getSeed

      public long getSeed()
      Mappings:
      Namespace Name Mixin selector
      official b Laxd;b()J
      intermediary method_210 Lnet/minecraft/class_100;method_210()J
      named getSeed Lnet/minecraft/world/level/LevelProperties;getSeed()J
    • getSpawnX

      public int getSpawnX()
      Mappings:
      Namespace Name Mixin selector
      official c Laxd;c()I
      intermediary method_214 Lnet/minecraft/class_100;method_214()I
      named getSpawnX Lnet/minecraft/world/level/LevelProperties;getSpawnX()I
    • getSpawnY

      public int getSpawnY()
      Mappings:
      Namespace Name Mixin selector
      official d Laxd;d()I
      intermediary method_216 Lnet/minecraft/class_100;method_216()I
      named getSpawnY Lnet/minecraft/world/level/LevelProperties;getSpawnY()I
    • getSpawnZ

      public int getSpawnZ()
      Mappings:
      Namespace Name Mixin selector
      official e Laxd;e()I
      intermediary method_218 Lnet/minecraft/class_100;method_218()I
      named getSpawnZ Lnet/minecraft/world/level/LevelProperties;getSpawnZ()I
    • getTime

      public long getTime()
      Mappings:
      Namespace Name Mixin selector
      official f Laxd;f()J
      intermediary method_4136 Lnet/minecraft/class_100;method_4136()J
      named getTime Lnet/minecraft/world/level/LevelProperties;getTime()J
    • getTimeOfDay

      public long getTimeOfDay()
      Mappings:
      Namespace Name Mixin selector
      official g Laxd;g()J
      intermediary method_220 Lnet/minecraft/class_100;method_220()J
      named getTimeOfDay Lnet/minecraft/world/level/LevelProperties;getTimeOfDay()J
    • getSizeOnDisk

      @Environment(CLIENT) public long getSizeOnDisk()
      Mappings:
      Namespace Name Mixin selector
      official h Laxd;h()J
      intermediary method_222 Lnet/minecraft/class_100;method_222()J
      named getSizeOnDisk Lnet/minecraft/world/level/LevelProperties;getSizeOnDisk()J
    • getNbt

      public NbtCompound getNbt()
      Mappings:
      Namespace Name Mixin selector
      official i Laxd;i()Ldg;
      intermediary method_224 Lnet/minecraft/class_100;method_224()Lnet/minecraft/class_322;
      named getNbt Lnet/minecraft/world/level/LevelProperties;getNbt()Lnet/minecraft/nbt/NbtCompound;
    • method_225

      public int method_225()
      Mappings:
      Namespace Name Mixin selector
      official j Laxd;j()I
      intermediary method_225 Lnet/minecraft/class_100;method_225()I
      named method_225 Lnet/minecraft/world/level/LevelProperties;method_225()I
    • setSpawnX

      @Environment(CLIENT) public void setSpawnX(int spawnX)
      Mappings:
      Namespace Name Mixin selector
      official a Laxd;a(I)V
      intermediary method_202 Lnet/minecraft/class_100;method_202(I)V
      named setSpawnX Lnet/minecraft/world/level/LevelProperties;setSpawnX(I)V
    • setSpawnY

      @Environment(CLIENT) public void setSpawnY(int spawnY)
      Mappings:
      Namespace Name Mixin selector
      official b Laxd;b(I)V
      intermediary method_211 Lnet/minecraft/class_100;method_211(I)V
      named setSpawnY Lnet/minecraft/world/level/LevelProperties;setSpawnY(I)V
    • setSpawnZ

      @Environment(CLIENT) public void setSpawnZ(int spawnZ)
      Mappings:
      Namespace Name Mixin selector
      official c Laxd;c(I)V
      intermediary method_215 Lnet/minecraft/class_100;method_215(I)V
      named setSpawnZ Lnet/minecraft/world/level/LevelProperties;setSpawnZ(I)V
    • setTime

      public void setTime(long time)
      Mappings:
      Namespace Name Mixin selector
      official b Laxd;b(J)V
      intermediary method_4131 Lnet/minecraft/class_100;method_4131(J)V
      named setTime Lnet/minecraft/world/level/LevelProperties;setTime(J)V
    • setDayTime

      public void setDayTime(long time)
      Mappings:
      Namespace Name Mixin selector
      official c Laxd;c(J)V
      intermediary method_212 Lnet/minecraft/class_100;method_212(J)V
      named setDayTime Lnet/minecraft/world/level/LevelProperties;setDayTime(J)V
    • method_203

      public void method_203(int int2, int int3, int int4)
      Mappings:
      Namespace Name Mixin selector
      official a Laxd;a(III)V
      intermediary method_203 Lnet/minecraft/class_100;method_203(III)V
      named method_203 Lnet/minecraft/world/level/LevelProperties;method_203(III)V
    • getLevelName

      public String getLevelName()
      Mappings:
      Namespace Name Mixin selector
      official k Laxd;k()Ljava/lang/String;
      intermediary method_226 Lnet/minecraft/class_100;method_226()Ljava/lang/String;
      named getLevelName Lnet/minecraft/world/level/LevelProperties;getLevelName()Ljava/lang/String;
    • setLevelName

      public void setLevelName(String name)
      Mappings:
      Namespace Name Mixin selector
      official a Laxd;a(Ljava/lang/String;)V
      intermediary method_206 Lnet/minecraft/class_100;method_206(Ljava/lang/String;)V
      named setLevelName Lnet/minecraft/world/level/LevelProperties;setLevelName(Ljava/lang/String;)V
    • getVersion

      public int getVersion()
      Mappings:
      Namespace Name Mixin selector
      official l Laxd;l()I
      intermediary method_227 Lnet/minecraft/class_100;method_227()I
      named getVersion Lnet/minecraft/world/level/LevelProperties;getVersion()I
    • setVersion

      public void setVersion(int version)
      Mappings:
      Namespace Name Mixin selector
      official e Laxd;e(I)V
      intermediary method_219 Lnet/minecraft/class_100;method_219(I)V
      named setVersion Lnet/minecraft/world/level/LevelProperties;setVersion(I)V
    • getLastPlayed

      @Environment(CLIENT) public long getLastPlayed()
      Mappings:
      Namespace Name Mixin selector
      official m Laxd;m()J
      intermediary method_228 Lnet/minecraft/class_100;method_228()J
      named getLastPlayed Lnet/minecraft/world/level/LevelProperties;getLastPlayed()J
    • isThundering

      public boolean isThundering()
      Mappings:
      Namespace Name Mixin selector
      official n Laxd;n()Z
      intermediary method_229 Lnet/minecraft/class_100;method_229()Z
      named isThundering Lnet/minecraft/world/level/LevelProperties;isThundering()Z
    • setThundering

      public void setThundering(boolean thundering)
      Mappings:
      Namespace Name Mixin selector
      official a Laxd;a(Z)V
      intermediary method_209 Lnet/minecraft/class_100;method_209(Z)V
      named setThundering Lnet/minecraft/world/level/LevelProperties;setThundering(Z)V
    • getThunderTime

      public int getThunderTime()
      Mappings:
      Namespace Name Mixin selector
      official o Laxd;o()I
      intermediary method_230 Lnet/minecraft/class_100;method_230()I
      named getThunderTime Lnet/minecraft/world/level/LevelProperties;getThunderTime()I
    • setThunderTime

      public void setThunderTime(int time)
      Mappings:
      Namespace Name Mixin selector
      official f Laxd;f(I)V
      intermediary method_221 Lnet/minecraft/class_100;method_221(I)V
      named setThunderTime Lnet/minecraft/world/level/LevelProperties;setThunderTime(I)V
    • isRaining

      public boolean isRaining()
      Mappings:
      Namespace Name Mixin selector
      official p Laxd;p()Z
      intermediary method_231 Lnet/minecraft/class_100;method_231()Z
      named isRaining Lnet/minecraft/world/level/LevelProperties;isRaining()Z
    • setRaining

      public void setRaining(boolean raining)
      Mappings:
      Namespace Name Mixin selector
      official b Laxd;b(Z)V
      intermediary method_213 Lnet/minecraft/class_100;method_213(Z)V
      named setRaining Lnet/minecraft/world/level/LevelProperties;setRaining(Z)V
    • getRainTime

      public int getRainTime()
      Mappings:
      Namespace Name Mixin selector
      official q Laxd;q()I
      intermediary method_232 Lnet/minecraft/class_100;method_232()I
      named getRainTime Lnet/minecraft/world/level/LevelProperties;getRainTime()I
    • setRainTime

      public void setRainTime(int rainTime)
      Mappings:
      Namespace Name Mixin selector
      official g Laxd;g(I)V
      intermediary method_223 Lnet/minecraft/class_100;method_223(I)V
      named setRainTime Lnet/minecraft/world/level/LevelProperties;setRainTime(I)V
    • getGamemode

      public GameMode getGamemode()
      Mappings:
      Namespace Name Mixin selector
      official r Laxd;r()Lafv;
      intermediary method_233 Lnet/minecraft/class_100;method_233()Lnet/minecraft/class_1157;
      named getGamemode Lnet/minecraft/world/level/LevelProperties;getGamemode()Lnet/minecraft/world/GameMode;
    • hasStructures

      public boolean hasStructures()
      Mappings:
      Namespace Name Mixin selector
      official s Laxd;s()Z
      intermediary method_234 Lnet/minecraft/class_100;method_234()Z
      named hasStructures Lnet/minecraft/world/level/LevelProperties;hasStructures()Z
    • method_207

      public void method_207(GameMode gameMode)
      Mappings:
      Namespace Name Mixin selector
      official a Laxd;a(Lafv;)V
      intermediary method_207 Lnet/minecraft/class_100;method_207(Lnet/minecraft/class_1157;)V
      named method_207 Lnet/minecraft/world/level/LevelProperties;method_207(Lnet/minecraft/world/GameMode;)V
    • isHardcore

      public boolean isHardcore()
      Mappings:
      Namespace Name Mixin selector
      official t Laxd;t()Z
      intermediary method_235 Lnet/minecraft/class_100;method_235()Z
      named isHardcore Lnet/minecraft/world/level/LevelProperties;isHardcore()Z
    • getGeneratorType

      public LevelGeneratorType getGeneratorType()
      Mappings:
      Namespace Name Mixin selector
      official u Laxd;u()Lafx;
      intermediary method_236 Lnet/minecraft/class_100;method_236()Lnet/minecraft/class_1160;
      named getGeneratorType Lnet/minecraft/world/level/LevelProperties;getGeneratorType()Lnet/minecraft/world/level/LevelGeneratorType;
    • setLevelGeneratorType

      public void setLevelGeneratorType(LevelGeneratorType type)
      Mappings:
      Namespace Name Mixin selector
      official a Laxd;a(Lafx;)V
      intermediary method_208 Lnet/minecraft/class_100;method_208(Lnet/minecraft/class_1160;)V
      named setLevelGeneratorType Lnet/minecraft/world/level/LevelProperties;setLevelGeneratorType(Lnet/minecraft/world/level/LevelGeneratorType;)V
    • getGeneratorOptions

      public String getGeneratorOptions()
      Mappings:
      Namespace Name Mixin selector
      official y Laxd;y()Ljava/lang/String;
      intermediary method_4150 Lnet/minecraft/class_100;method_4150()Ljava/lang/String;
      named getGeneratorOptions Lnet/minecraft/world/level/LevelProperties;getGeneratorOptions()Ljava/lang/String;
    • areCheatsEnabled

      public boolean areCheatsEnabled()
      Mappings:
      Namespace Name Mixin selector
      official v Laxd;v()Z
      intermediary method_237 Lnet/minecraft/class_100;method_237()Z
      named areCheatsEnabled Lnet/minecraft/world/level/LevelProperties;areCheatsEnabled()Z
    • isInitialized

      public boolean isInitialized()
      Mappings:
      Namespace Name Mixin selector
      official w Laxd;w()Z
      intermediary method_238 Lnet/minecraft/class_100;method_238()Z
      named isInitialized Lnet/minecraft/world/level/LevelProperties;isInitialized()Z
    • setInitialized

      public void setInitialized(boolean initialized)
      Mappings:
      Namespace Name Mixin selector
      official d Laxd;d(Z)V
      intermediary method_217 Lnet/minecraft/class_100;method_217(Z)V
      named setInitialized Lnet/minecraft/world/level/LevelProperties;setInitialized(Z)V
    • getGamerules

      public GameRuleManager getGamerules()
      Mappings:
      Namespace Name Mixin selector
      official x Laxd;x()Lafj;
      intermediary method_4149 Lnet/minecraft/class_100;method_4149()Lnet/minecraft/class_1439;
      named getGamerules Lnet/minecraft/world/level/LevelProperties;getGamerules()Lnet/minecraft/world/GameRuleManager;
    • addToCrashReport

      public void addToCrashReport(CrashReportSection section)
      Mappings:
      Namespace Name Mixin selector
      official a Laxd;a(Lk;)V
      intermediary method_4130 Lnet/minecraft/class_100;method_4130(Lnet/minecraft/class_1392;)V
      named addToCrashReport Lnet/minecraft/world/level/LevelProperties;addToCrashReport(Lnet/minecraft/util/crash/CrashReportSection;)V