Package net.minecraft.world.level
Class LevelInfo
java.lang.Object
net.minecraft.world.level.LevelInfo
public final class LevelInfo extends Object
- Mappings:
Namespace Name official adpintermediary net/minecraft/class_102named net/minecraft/world/level/LevelInfo
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLevelInfo.GameMode -
Field Summary
Fields Modifier and Type Field Description private booleanbonusChestprivate booleancommandsprivate LevelInfo.GameModegameModeprivate StringgeneratorOptionsprivate LevelGeneratorTypegeneratorTypeprivate booleanhardcoreprivate longseedprivate booleanstructures -
Constructor Summary
Constructors Constructor Description LevelInfo(long seed, LevelInfo.GameMode gameMode, boolean structures, boolean hardcore, LevelGeneratorType generatorType)LevelInfo(LevelProperties levelProperties) -
Method Summary
Modifier and Type Method Description booleanallowCommands()LevelInfoenableCommands()LevelInfo.GameModegetGameMode()static LevelInfo.GameModegetGameModeById(int id)StringgetGeneratorOptions()LevelGeneratorTypegetGeneratorType()longgetSeed()booleanhasBonusChest()booleanhasStructures()booleanisHardcore()LevelInfosetBonusChest()LevelInfosetGeneratorOptions(String generatorOptions)
-
Field Details
-
seed
private final long seed- Mappings:
Namespace Name Mixin selector official aLadp;a:Jintermediary field_295Lnet/minecraft/class_102;field_295:Jnamed seedLnet/minecraft/world/level/LevelInfo;seed:J
-
gameMode
- Mappings:
Namespace Name Mixin selector official bLadp;b:Ladp$a;intermediary field_296Lnet/minecraft/class_102;field_296:Lnet/minecraft/class_102$class_103;named gameModeLnet/minecraft/world/level/LevelInfo;gameMode:Lnet/minecraft/world/level/LevelInfo$GameMode;
-
structures
private final boolean structures- Mappings:
Namespace Name Mixin selector official cLadp;c:Zintermediary field_297Lnet/minecraft/class_102;field_297:Znamed structuresLnet/minecraft/world/level/LevelInfo;structures:Z
-
hardcore
private final boolean hardcore- Mappings:
Namespace Name Mixin selector official dLadp;d:Zintermediary field_298Lnet/minecraft/class_102;field_298:Znamed hardcoreLnet/minecraft/world/level/LevelInfo;hardcore:Z
-
generatorType
- Mappings:
Namespace Name Mixin selector official eLadp;e:Ladr;intermediary field_299Lnet/minecraft/class_102;field_299:Lnet/minecraft/class_105;named generatorTypeLnet/minecraft/world/level/LevelInfo;generatorType:Lnet/minecraft/world/level/LevelGeneratorType;
-
commands
private boolean commands- Mappings:
Namespace Name Mixin selector official fLadp;f:Zintermediary field_300Lnet/minecraft/class_102;field_300:Znamed commandsLnet/minecraft/world/level/LevelInfo;commands:Z
-
bonusChest
private boolean bonusChest- Mappings:
Namespace Name Mixin selector official gLadp;g:Zintermediary field_301Lnet/minecraft/class_102;field_301:Znamed bonusChestLnet/minecraft/world/level/LevelInfo;bonusChest:Z
-
generatorOptions
- Mappings:
Namespace Name Mixin selector official hLadp;h:Ljava/lang/String;intermediary field_302Lnet/minecraft/class_102;field_302:Ljava/lang/String;named generatorOptionsLnet/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;)Vintermediary <init>Lnet/minecraft/class_102;<init>(JLnet/minecraft/class_102$class_103;ZZLnet/minecraft/class_105;)Vnamed <init>Lnet/minecraft/world/level/LevelInfo;<init>(JLnet/minecraft/world/level/LevelInfo$GameMode;ZZLnet/minecraft/world/level/LevelGeneratorType;)V
-
LevelInfo
- Mappings:
Namespace Name Mixin selector official <init>Ladp;<init>(Lato;)Vintermediary <init>Lnet/minecraft/class_102;<init>(Lnet/minecraft/class_634;)Vnamed <init>Lnet/minecraft/world/level/LevelInfo;<init>(Lnet/minecraft/world/level/LevelProperties;)V
-
-
Method Details
-
setBonusChest
- Mappings:
Namespace Name Mixin selector official aLadp;a()Ladp;intermediary method_457Lnet/minecraft/class_102;method_457()Lnet/minecraft/class_102;named setBonusChestLnet/minecraft/world/level/LevelInfo;setBonusChest()Lnet/minecraft/world/level/LevelInfo;
-
enableCommands
- Mappings:
Namespace Name Mixin selector official bLadp;b()Ladp;intermediary method_460Lnet/minecraft/class_102;method_460()Lnet/minecraft/class_102;named enableCommandsLnet/minecraft/world/level/LevelInfo;enableCommands()Lnet/minecraft/world/level/LevelInfo;
-
setGeneratorOptions
- Mappings:
Namespace Name Mixin selector official aLadp;a(Ljava/lang/String;)Ladp;intermediary method_459Lnet/minecraft/class_102;method_459(Ljava/lang/String;)Lnet/minecraft/class_102;named setGeneratorOptionsLnet/minecraft/world/level/LevelInfo;setGeneratorOptions(Ljava/lang/String;)Lnet/minecraft/world/level/LevelInfo;
-
hasBonusChest
public boolean hasBonusChest()- Mappings:
Namespace Name Mixin selector official cLadp;c()Zintermediary method_461Lnet/minecraft/class_102;method_461()Znamed hasBonusChestLnet/minecraft/world/level/LevelInfo;hasBonusChest()Z
-
getSeed
public long getSeed()- Mappings:
Namespace Name Mixin selector official dLadp;d()Jintermediary method_462Lnet/minecraft/class_102;method_462()Jnamed getSeedLnet/minecraft/world/level/LevelInfo;getSeed()J
-
getGameMode
- Mappings:
Namespace Name Mixin selector official eLadp;e()Ladp$a;intermediary method_463Lnet/minecraft/class_102;method_463()Lnet/minecraft/class_102$class_103;named getGameModeLnet/minecraft/world/level/LevelInfo;getGameMode()Lnet/minecraft/world/level/LevelInfo$GameMode;
-
isHardcore
public boolean isHardcore()- Mappings:
Namespace Name Mixin selector official fLadp;f()Zintermediary method_464Lnet/minecraft/class_102;method_464()Znamed isHardcoreLnet/minecraft/world/level/LevelInfo;isHardcore()Z
-
hasStructures
public boolean hasStructures()- Mappings:
Namespace Name Mixin selector official gLadp;g()Zintermediary method_465Lnet/minecraft/class_102;method_465()Znamed hasStructuresLnet/minecraft/world/level/LevelInfo;hasStructures()Z
-
getGeneratorType
- Mappings:
Namespace Name Mixin selector official hLadp;h()Ladr;intermediary method_466Lnet/minecraft/class_102;method_466()Lnet/minecraft/class_105;named getGeneratorTypeLnet/minecraft/world/level/LevelInfo;getGeneratorType()Lnet/minecraft/world/level/LevelGeneratorType;
-
allowCommands
public boolean allowCommands()- Mappings:
Namespace Name Mixin selector official iLadp;i()Zintermediary method_467Lnet/minecraft/class_102;method_467()Znamed allowCommandsLnet/minecraft/world/level/LevelInfo;allowCommands()Z
-
getGameModeById
- Mappings:
Namespace Name Mixin selector official aLadp;a(I)Ladp$a;intermediary method_458Lnet/minecraft/class_102;method_458(I)Lnet/minecraft/class_102$class_103;named getGameModeByIdLnet/minecraft/world/level/LevelInfo;getGameModeById(I)Lnet/minecraft/world/level/LevelInfo$GameMode;
-
getGeneratorOptions
- Mappings:
Namespace Name Mixin selector official jLadp;j()Ljava/lang/String;intermediary method_468Lnet/minecraft/class_102;method_468()Ljava/lang/String;named getGeneratorOptionsLnet/minecraft/world/level/LevelInfo;getGeneratorOptions()Ljava/lang/String;
-