public final class Level extends AbstractNBTItem
| Constructor and Description |
|---|
Level(CompoundTag tag,
int mapHeight) |
Level(int mapHeight,
Platform platform) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDimension(int dim) |
double |
getBorderCenterX() |
double |
getBorderCenterZ() |
double |
getBorderDamagePerBlock() |
double |
getBorderSafeZone() |
double |
getBorderSize() |
double |
getBorderSizeLerpTarget() |
long |
getBorderSizeLerpTime() |
double |
getBorderWarningBlocks() |
double |
getBorderWarningTime() |
int |
getDataVersion()
1.12.2: 1343
18w11a: 1478
|
int |
getDifficulty() |
Dimension |
getDimension(int dim) |
int |
getGameType() |
Generator |
getGenerator() |
String |
getGeneratorName() |
String |
getGeneratorOptions() |
int |
getGeneratorVersion() |
int |
getMapHeight() |
int |
getMaxHeight() |
String |
getName() |
long |
getSeed() |
int |
getSpawnX() |
int |
getSpawnY() |
int |
getSpawnZ() |
long |
getTime() |
int |
getVersion() |
boolean |
isAllowCommands() |
boolean |
isDifficultyLocked() |
boolean |
isHardcore() |
boolean |
isMapFeatures() |
static Level |
load(File levelDatFile) |
Dimension |
removeDimension(int dim) |
void |
save(File worldDir) |
void |
setAllowCommands(boolean allowCommands) |
void |
setBorderCenterX(double borderCenterX) |
void |
setBorderCenterZ(double borderCenterZ) |
void |
setBorderDamagePerBlock(double borderDamagePerBlock) |
void |
setBorderSafeZone(double borderSafeZone) |
void |
setBorderSize(double borderSize) |
void |
setBorderSizeLerpTarget(double borderSizeLerpTarget) |
void |
setBorderSizeLerpTime(long borderSizeLerpTime) |
void |
setBorderWarningBlocks(double borderWarningBlocks) |
void |
setBorderWarningTime(double borderWarningTime) |
void |
setDifficulty(int difficulty) |
void |
setDifficultyLocked(boolean difficultyLocked) |
void |
setGameType(int gameType) |
void |
setGenerator(Generator generator) |
void |
setGeneratorName(String generatorName) |
void |
setGeneratorOptions(String generatorOptions) |
void |
setHardcore(boolean hardcore) |
void |
setMapFeatures(boolean mapFeatures) |
void |
setName(String name) |
void |
setSeed(long seed) |
void |
setSpawnX(int spawnX) |
void |
setSpawnY(int spawnY) |
void |
setSpawnZ(int spawnZ) |
void |
setTime(long time) |
Tag |
toNBT() |
clone, containsTag, getBoolean, getBoolean, getByte, getByte, getByteArray, getDouble, getDouble, getDoubleList, getFloat, getFloat, getFloatList, getInt, getInt, getIntArray, getList, getLong, getLong, getLongArray, getMap, getShort, getShort, getString, getString, setBoolean, setByte, setByteArray, setDouble, setDoubleList, setFloat, setFloatList, setInt, setIntArray, setList, setLong, setLongArray, setMap, setShort, setString, toStringpublic Level(int mapHeight,
Platform platform)
public Level(CompoundTag tag, int mapHeight)
public void save(File worldDir) throws IOException
IOExceptionpublic Dimension getDimension(int dim)
public void addDimension(int dim)
public Dimension removeDimension(int dim)
public String getName()
public long getSeed()
public int getSpawnX()
public int getSpawnY()
public int getSpawnZ()
public long getTime()
public int getVersion()
public int getDataVersion()
public boolean isMapFeatures()
public int getMapHeight()
public int getGameType()
public boolean isHardcore()
public String getGeneratorName()
public int getGeneratorVersion()
public Generator getGenerator()
public String getGeneratorOptions()
public boolean isAllowCommands()
public int getMaxHeight()
public int getDifficulty()
public boolean isDifficultyLocked()
public double getBorderCenterX()
public double getBorderCenterZ()
public double getBorderSize()
public double getBorderSafeZone()
public double getBorderWarningBlocks()
public double getBorderWarningTime()
public double getBorderSizeLerpTarget()
public long getBorderSizeLerpTime()
public double getBorderDamagePerBlock()
public void setName(String name)
public void setSeed(long seed)
public void setSpawnX(int spawnX)
public void setSpawnY(int spawnY)
public void setSpawnZ(int spawnZ)
public void setTime(long time)
public void setMapFeatures(boolean mapFeatures)
public void setGameType(int gameType)
public void setHardcore(boolean hardcore)
public void setGeneratorName(String generatorName)
public void setGenerator(Generator generator)
public void setGeneratorOptions(String generatorOptions)
public void setAllowCommands(boolean allowCommands)
public void setDifficulty(int difficulty)
public void setDifficultyLocked(boolean difficultyLocked)
public void setBorderCenterX(double borderCenterX)
public void setBorderCenterZ(double borderCenterZ)
public void setBorderSize(double borderSize)
public void setBorderSafeZone(double borderSafeZone)
public void setBorderWarningBlocks(double borderWarningBlocks)
public void setBorderWarningTime(double borderWarningTime)
public void setBorderSizeLerpTarget(double borderSizeLerpTarget)
public void setBorderSizeLerpTime(long borderSizeLerpTime)
public void setBorderDamagePerBlock(double borderDamagePerBlock)
public Tag toNBT()
toNBT in interface NBTItemtoNBT in class AbstractNBTItempublic static Level load(File levelDatFile) throws IOException
IOException