public class LevelData extends Object
| Constructor and Description |
|---|
LevelData() |
LevelData(LevelData levelData) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTime(int time) |
void |
checkTime(int tickRate) |
Object |
get(String key) |
long |
getCurrentTick() |
Map<String,Object> |
getData() |
int |
getDifficulty() |
int |
getDimension() |
GameRuleMap |
getGameRules() |
int |
getGameType() |
Identifier |
getGenerator() |
String |
getGeneratorOptions() |
long |
getLastPlayed() |
float |
getLightningLevel() |
int |
getLightningTime() |
com.nukkitx.math.vector.Vector3f |
getLimitedWorldOrigin() |
String |
getName() |
int |
getNetherScale() |
int |
getNetworkVersion() |
int |
getPlatform() |
float |
getRainLevel() |
int |
getRainTime() |
long |
getRandomSeed() |
int |
getServerChunkTickRange() |
com.nukkitx.math.vector.Vector3i |
getSpawn() |
int |
getSpawnRadius() |
int |
getStorageVersion() |
long |
getTime() |
long |
getWorldStartCount() |
boolean |
isBonusChestEnabled() |
boolean |
isBonusChestSpawned() |
boolean |
isEducationFeaturesEnabled() |
boolean |
isEduLevel() |
boolean |
isForceGameType() |
boolean |
isHardcore() |
boolean |
isHasBeenLoadedInCreative() |
boolean |
isHasLockedBehaviorPack() |
boolean |
isHasLockedResourcePack() |
boolean |
isImmutableWorld() |
boolean |
isTexturePacksRequired() |
void |
set(String key,
Object value) |
void |
setBonusChestEnabled(boolean bonusChestEnabled) |
void |
setBonusChestSpawned(boolean bonusChestSpawned) |
void |
setCurrentTick(long currentTick) |
void |
setData(Map<String,Object> fullData) |
void |
setDifficulty(int difficulty) |
void |
setDimension(int dimension) |
void |
setEducationFeaturesEnabled(boolean educationFeaturesEnabled) |
void |
setEduLevel(boolean eduLevel) |
void |
setForceGameType(boolean forceGameType) |
void |
setGameType(int gameType) |
void |
setGenerator(Identifier generator) |
void |
setGeneratorOptions(String generatorOptions) |
void |
setHardcore(boolean hardcore) |
void |
setHasBeenLoadedInCreative(boolean hasBeenLoadedInCreative) |
void |
setHasLockedBehaviorPack(boolean hasLockedBehaviorPack) |
void |
setHasLockedResourcePack(boolean hasLockedResourcePack) |
void |
setImmutableWorld(boolean immutableWorld) |
void |
setLastPlayed(long lastPlayed) |
void |
setLightningLevel(float lightningLevel) |
void |
setLightningTime(int lightningTime) |
void |
setLimitedWorldOrigin(com.nukkitx.math.vector.Vector3f limitedWorldOrigin) |
void |
setName(String name) |
void |
setNetherScale(int netherScale) |
void |
setNetworkVersion(int networkVersion) |
void |
setPlatform(int platform) |
void |
setRainLevel(float rainLevel) |
void |
setRainTime(int rainTime) |
void |
setRandomSeed(long randomSeed) |
void |
setServerChunkTickRange(int serverChunkTickRange) |
void |
setSpawn(com.nukkitx.math.vector.Vector3i spawn) |
void |
setSpawnRadius(int spawnRadius) |
void |
setStorageVersion(int storageVersion) |
void |
setTexturePacksRequired(boolean texturePacksRequired) |
void |
setTime(long time) |
void |
setWorldStartCount(long worldStartCount) |
public LevelData()
public LevelData(LevelData levelData)
public GameRuleMap getGameRules()
public void checkTime(int tickRate)
public void addTime(int time)
public long getCurrentTick()
public void setCurrentTick(long currentTick)
public long getRandomSeed()
public void setRandomSeed(long randomSeed)
public int getDimension()
public void setDimension(int dimension)
public Identifier getGenerator()
public void setGenerator(Identifier generator)
public String getGeneratorOptions()
public void setGeneratorOptions(String generatorOptions)
public String getName()
public void setName(String name)
public long getTime()
public void setTime(long time)
public com.nukkitx.math.vector.Vector3i getSpawn()
public void setSpawn(com.nukkitx.math.vector.Vector3i spawn)
public int getServerChunkTickRange()
public void setServerChunkTickRange(int serverChunkTickRange)
public int getSpawnRadius()
public void setSpawnRadius(int spawnRadius)
public int getRainTime()
public void setRainTime(int rainTime)
public int getLightningTime()
public void setLightningTime(int lightningTime)
public float getRainLevel()
public void setRainLevel(float rainLevel)
public float getLightningLevel()
public void setLightningLevel(float lightningLevel)
public int getDifficulty()
public void setDifficulty(int difficulty)
public int getStorageVersion()
public void setStorageVersion(int storageVersion)
public int getGameType()
public void setGameType(int gameType)
public com.nukkitx.math.vector.Vector3f getLimitedWorldOrigin()
public void setLimitedWorldOrigin(com.nukkitx.math.vector.Vector3f limitedWorldOrigin)
public int getNetherScale()
public void setNetherScale(int netherScale)
public int getNetworkVersion()
public void setNetworkVersion(int networkVersion)
public int getPlatform()
public void setPlatform(int platform)
public long getWorldStartCount()
public void setWorldStartCount(long worldStartCount)
public long getLastPlayed()
public void setLastPlayed(long lastPlayed)
public boolean isBonusChestEnabled()
public void setBonusChestEnabled(boolean bonusChestEnabled)
public boolean isBonusChestSpawned()
public void setBonusChestSpawned(boolean bonusChestSpawned)
public boolean isForceGameType()
public void setForceGameType(boolean forceGameType)
public boolean isEducationFeaturesEnabled()
public void setEducationFeaturesEnabled(boolean educationFeaturesEnabled)
public boolean isEduLevel()
public void setEduLevel(boolean eduLevel)
public boolean isHasBeenLoadedInCreative()
public void setHasBeenLoadedInCreative(boolean hasBeenLoadedInCreative)
public boolean isHasLockedBehaviorPack()
public void setHasLockedBehaviorPack(boolean hasLockedBehaviorPack)
public boolean isHasLockedResourcePack()
public void setHasLockedResourcePack(boolean hasLockedResourcePack)
public boolean isImmutableWorld()
public void setImmutableWorld(boolean immutableWorld)
public boolean isTexturePacksRequired()
public void setTexturePacksRequired(boolean texturePacksRequired)
public boolean isHardcore()
public void setHardcore(boolean hardcore)
Copyright © 2020. All rights reserved.