public class MapArchObject extends AbstractMapArchObject<MapArchObject>
MAP_NAME_UNNAMED
Constructor and Description |
---|
MapArchObject()
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
@NotNull MapArchObject |
createClone()
Creates a copy of this object.
|
boolean |
equals(@Nullable java.lang.Object obj) |
@NotNull java.lang.String |
getBackgroundMusic()
Returns the name of the background music.
|
@NotNull java.lang.String |
getRegion()
Returns the region attribute.
|
int |
getTilesetId()
Returns the tileset id attribute.
|
int |
getTilesetX()
Returns the tileset x attribute.
|
int |
getTilesetY()
Returns the tileset y attribute.
|
@NotNull java.lang.String |
getWeather()
Returns the weather attribute.
|
int |
hashCode() |
boolean |
isFixedLogin()
Returns the fixed login attribute.
|
boolean |
isFixedResetTime()
Returns the fixed reset time attribute.
|
boolean |
isHeightDiff()
Returns the height diff attribute.
|
boolean |
isNoHarm()
Returns the no harm attribute.
|
boolean |
isNoMagic()
Returns the no magic attribute.
|
boolean |
isNoSave()
Returns the no save attribute.
|
boolean |
isNoSummon()
Returns the no summon attribute.
|
boolean |
isPlayerNoSave()
Returns the player no save attribute.
|
boolean |
isPvp()
Returns the pvp attribute.
|
boolean |
isUnique()
Returns the unique attribute.
|
void |
setBackgroundMusic(@NotNull java.lang.String backgroundMusic)
Sets the name of the background music.
|
void |
setDifficulty(int difficulty)
Sets the map's difficulty.
|
void |
setFixedLogin(boolean fixedLogin)
Sets the fixed login attribute.
|
void |
setFixedResetTime(boolean fixedResetTime)
Sets the fixed reset time attribute.
|
void |
setHeightDiff(boolean heightDiff)
Sets the height diff attribute.
|
void |
setNoHarm(boolean noHarm)
Sets the no harm attribute.
|
void |
setNoMagic(boolean noMagic)
Sets the no magic attribute.
|
void |
setNoSave(boolean noSave)
Sets the no save attribute.
|
void |
setNoSummon(boolean noSummon)
Sets the no summon attribute.
|
void |
setPlayerNoSave(boolean playerNoSave)
Sets the player no save attribute.
|
void |
setPvp(boolean pvp)
Sets the pvp attribute.
|
void |
setRegion(@NotNull java.lang.String region)
Sets the region attribute.
|
void |
setState(@NotNull MapArchObject mapArchObject)
Resets the state of this object to the state of the given map arch
object.
|
void |
setTilesetId(int tilesetId)
Sets the tileset id attribute.
|
void |
setTilesetX(int tilesetX)
Sets the tileset x attribute.
|
void |
setTilesetY(int tilesetY)
Sets the tileset y attribute.
|
void |
setUnique(boolean unique)
Sets the unique save attribute.
|
void |
setWeather(@NotNull java.lang.String weather)
Sets the weather attribute.
|
addMapArchObjectListener, addText, beginTransaction, calculateTilePath, calculateTilePaths, endTransaction, endTransaction, getDarkness, getDifficulty, getEnter, getEnterX, getEnterY, getMapName, getMapSize, getResetTimeout, getSwapTime, getText, getTilePath, getTilePaths, isFixedReset, isOutdoor, isPointValid, isTilePathAuto, removeMapArchObjectListener, setDarkness, setEnterX, setEnterY, setFixedReset, setMapName, setMapSize, setModified, setOutdoor, setResetTimeout, setSwapTime, setText, setTilePath, updateModifiedAttribute
public void setState(@NotNull @NotNull MapArchObject mapArchObject)
MapArchObject
setState
in interface MapArchObject<MapArchObject>
setState
in class AbstractMapArchObject<MapArchObject>
mapArchObject
- the map arch object to copy the state frompublic boolean isNoSave()
public void setNoSave(boolean noSave)
noSave
- the no save attributepublic boolean isNoMagic()
public void setNoMagic(boolean noMagic)
noMagic
- the no magic attributepublic boolean isHeightDiff()
public void setHeightDiff(boolean heightDiff)
heightDiff
- the height diff attributepublic boolean isNoSummon()
public void setNoSummon(boolean noSummon)
noSummon
- the no summon attributepublic boolean isNoHarm()
public void setNoHarm(boolean noHarm)
noHarm
- the no harm attributepublic boolean isFixedLogin()
public void setFixedLogin(boolean fixedLogin)
fixedLogin
- the fixed login attributepublic boolean isUnique()
public void setUnique(boolean unique)
unique
- the unique attributepublic boolean isFixedResetTime()
public void setFixedResetTime(boolean fixedResetTime)
fixedResetTime
- the fixed reset time attributepublic boolean isPlayerNoSave()
public void setPlayerNoSave(boolean playerNoSave)
playerNoSave
- the player no save attributepublic boolean isPvp()
public void setPvp(boolean pvp)
pvp
- the pvp attributepublic int getTilesetId()
public void setTilesetId(int tilesetId)
tilesetId
- the tileset id attributepublic int getTilesetX()
public void setTilesetX(int tilesetX)
tilesetX
- the tileset x attributepublic int getTilesetY()
public void setTilesetY(int tilesetY)
tilesetY
- the tileset y attribute@NotNull public @NotNull java.lang.String getBackgroundMusic()
public void setBackgroundMusic(@NotNull @NotNull java.lang.String backgroundMusic)
backgroundMusic
- the name or an empty string to unset@NotNull public @NotNull java.lang.String getRegion()
public void setRegion(@NotNull @NotNull java.lang.String region)
region
- the region attribute@NotNull public @NotNull java.lang.String getWeather()
public void setWeather(@NotNull @NotNull java.lang.String weather)
weather
- the weather attributepublic void setDifficulty(int difficulty)
MapArchObject
setDifficulty
in interface MapArchObject<MapArchObject>
setDifficulty
in class AbstractMapArchObject<MapArchObject>
difficulty
- the new difficulty for this mappublic boolean equals(@Nullable @Nullable java.lang.Object obj)
equals
in class AbstractMapArchObject<MapArchObject>
public int hashCode()
hashCode
in class AbstractMapArchObject<MapArchObject>
@NotNull public @NotNull MapArchObject createClone()
MapArchObject