public class Levellevel.dat Null means it wasn't in the file (and won't be after saving either), stuff we don't know about (version_history, mod data, ...) is left alone
Constructors
public Level()Methods
Level fromNbt(NbtCompound)int getDataVersion()Returns the dataVersion value.Difficulty getDifficulty()Returns the difficulty value.String[] getDisabledDatapacks()Returns the disabledDatapacks value.String[] getEnabledDatapacks()Returns the enabledDatapacks value.String[] getEnabledFeatures()Returns the enabledFeatures value.int getGameType()Returns the gameType value.byte getInitialized()Returns the initialized value.long getLastPlayed()Returns the lastPlayed value.String getLevelName()Returns the levelName value.int getNbtVersion()Returns the nbtVersion value.String[] getServerBrands()Returns the serverBrands value.UUID getSingleplayerUuid()Returns the singleplayerUuid value.Spawn getSpawn()Returns the spawn value.long getTime()Returns the time value.Version getVersion()Returns the version value.boolean isAllowCommands()Returns the allowCommands value.boolean isHardcore()Returns the hardcore value.boolean isLocked()Returns the locked value.boolean isModded()Returns the modded value.void setAllowCommands(boolean)Sets the allowCommands value.void setDataVersion(int)Sets the dataVersion value.void setDifficulty(Difficulty)Sets the difficulty value.void setDisabledDatapacks(String[])Sets the disabledDatapacks value.void setEnabledDatapacks(String[])Sets the enabledDatapacks value.void setEnabledFeatures(String[])Sets the enabledFeatures value.void setGameType(int)Sets the gameType value.void setHardcore(boolean)Sets the hardcore value.void setInitialized(byte)Sets the initialized value.void setLastPlayed(long)Sets the lastPlayed value.void setLevelName(String)Sets the levelName value.void setLocked(boolean)Sets the locked value.void setModded(boolean)Sets the modded value.void setNbtVersion(int)Sets the nbtVersion value.void setServerBrands(String[])Sets the serverBrands value.void setSingleplayerUuid(UUID)Sets the singleplayerUuid value.void setSpawn(Spawn)Sets the spawn value.void setTime(long)Sets the time value.void setVersion(Version)Sets the version value.NbtCompound toNbt()Everything fromNbt read, with your changes on toppublic static Level fromNbt(NbtCompound nbt)| Parameters | ||
|---|---|---|
nbt | NbtCompound | |
| Returns | ||
Level | ||
getDataVersion()
public int getDataVersion()Returns the dataVersion value.
| Returns | ||
|---|---|---|
int | ||
Generated by Lombok's @Getter for the field dataVersion
getDifficulty()
public Difficulty getDifficulty()Returns the difficulty value.
| Returns | ||
|---|---|---|
Difficulty | ||
Generated by Lombok's @Getter for the field difficulty
public String[] getDisabledDatapacks()Returns the disabledDatapacks value.
| Returns | ||
|---|---|---|
String[] | ||
Generated by Lombok's @Getter for the field disabledDatapacks
public String[] getEnabledDatapacks()Returns the enabledDatapacks value.
| Returns | ||
|---|---|---|
String[] | ||
Generated by Lombok's @Getter for the field enabledDatapacks
public String[] getEnabledFeatures()Returns the enabledFeatures value.
| Returns | ||
|---|---|---|
String[] | ||
Generated by Lombok's @Getter for the field enabledFeatures
getGameType()
public int getGameType()Returns the gameType value.
| Returns | ||
|---|---|---|
int | ||
Generated by Lombok's @Getter for the field gameType
getInitialized()
public byte getInitialized()Returns the initialized value.
| Returns | ||
|---|---|---|
byte | ||
Generated by Lombok's @Getter for the field initialized
getLastPlayed()
public long getLastPlayed()Returns the lastPlayed value.
| Returns | ||
|---|---|---|
long | ||
Generated by Lombok's @Getter for the field lastPlayed
getLevelName()
public String getLevelName()getNbtVersion()
public int getNbtVersion()Returns the nbtVersion value.
| Returns | ||
|---|---|---|
int | ||
Generated by Lombok's @Getter for the field nbtVersion
getServerBrands()
public String[] getServerBrands()Returns the serverBrands value.
| Returns | ||
|---|---|---|
String[] | ||
Generated by Lombok's @Getter for the field serverBrands
public UUID getSingleplayerUuid()Returns the singleplayerUuid value.
| Returns | ||
|---|---|---|
UUID | ||
Generated by Lombok's @Getter for the field singleplayerUuid
getSpawn()
public Spawn getSpawn()public long getTime()Returns the time value.
| Returns | ||
|---|---|---|
long | ||
Generated by Lombok's @Getter for the field time
getVersion()
public Version getVersion()isAllowCommands()
public boolean isAllowCommands()Returns the allowCommands value.
| Returns | ||
|---|---|---|
boolean | ||
Generated by Lombok's @Getter for the field allowCommands
isHardcore()
public boolean isHardcore()Returns the hardcore value.
| Returns | ||
|---|---|---|
boolean | ||
Generated by Lombok's @Getter for the field hardcore
isLocked()
public boolean isLocked()Returns the locked value.
| Returns | ||
|---|---|---|
boolean | ||
Generated by Lombok's @Getter for the field locked
isModded()
public boolean isModded()Returns the modded value.
| Returns | ||
|---|---|---|
boolean | ||
Generated by Lombok's @Getter for the field modded
public void setAllowCommands(boolean allowCommands)Sets the allowCommands value.
| Parameters | ||
|---|---|---|
allowCommands | boolean | |
Generated by Lombok's @Setter for the field allowCommands
public void setDataVersion(int dataVersion)Sets the dataVersion value.
| Parameters | ||
|---|---|---|
dataVersion | int | |
Generated by Lombok's @Setter for the field dataVersion
public void setDifficulty(Difficulty difficulty)Sets the difficulty value.
| Parameters | ||
|---|---|---|
difficulty | Difficulty | |
Generated by Lombok's @Setter for the field difficulty
public void setDisabledDatapacks(String[] disabledDatapacks)Sets the disabledDatapacks value.
| Parameters | ||
|---|---|---|
disabledDatapacks | String[] | |
Generated by Lombok's @Setter for the field disabledDatapacks
public void setEnabledDatapacks(String[] enabledDatapacks)Sets the enabledDatapacks value.
| Parameters | ||
|---|---|---|
enabledDatapacks | String[] | |
Generated by Lombok's @Setter for the field enabledDatapacks
public void setEnabledFeatures(String[] enabledFeatures)Sets the enabledFeatures value.
| Parameters | ||
|---|---|---|
enabledFeatures | String[] | |
Generated by Lombok's @Setter for the field enabledFeatures
setGameType(int)
public void setGameType(int gameType)Sets the gameType value.
| Parameters | ||
|---|---|---|
gameType | int | |
Generated by Lombok's @Setter for the field gameType
public void setHardcore(boolean hardcore)Sets the hardcore value.
| Parameters | ||
|---|---|---|
hardcore | boolean | |
Generated by Lombok's @Setter for the field hardcore
public void setInitialized(byte initialized)Sets the initialized value.
| Parameters | ||
|---|---|---|
initialized | byte | |
Generated by Lombok's @Setter for the field initialized
public void setLastPlayed(long lastPlayed)Sets the lastPlayed value.
| Parameters | ||
|---|---|---|
lastPlayed | long | |
Generated by Lombok's @Setter for the field lastPlayed
public void setLevelName(String levelName)Sets the levelName value.
| Parameters | ||
|---|---|---|
levelName | String | |
Generated by Lombok's @Setter for the field levelName
setLocked(boolean)
public void setLocked(boolean locked)Sets the locked value.
| Parameters | ||
|---|---|---|
locked | boolean | |
Generated by Lombok's @Setter for the field locked
setModded(boolean)
public void setModded(boolean modded)Sets the modded value.
| Parameters | ||
|---|---|---|
modded | boolean | |
Generated by Lombok's @Setter for the field modded
setNbtVersion(int)
public void setNbtVersion(int nbtVersion)Sets the nbtVersion value.
| Parameters | ||
|---|---|---|
nbtVersion | int | |
Generated by Lombok's @Setter for the field nbtVersion
public void setServerBrands(String[] serverBrands)Sets the serverBrands value.
| Parameters | ||
|---|---|---|
serverBrands | String[] | |
Generated by Lombok's @Setter for the field serverBrands
public void setSingleplayerUuid(UUID singleplayerUuid)Sets the singleplayerUuid value.
| Parameters | ||
|---|---|---|
singleplayerUuid | UUID | |
Generated by Lombok's @Setter for the field singleplayerUuid
setSpawn(Spawn)
public void setSpawn(Spawn spawn)setTime(long)
public void setTime(long time)Sets the time value.
| Parameters | ||
|---|---|---|
time | long | |
Generated by Lombok's @Setter for the field time
public void setVersion(Version version)public NbtCompound toNbt()fromNbt read, with your changes on top| Returns | ||
|---|---|---|
NbtCompound | ||