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.
|
int |
getTilesetId()
Returns the tileset id.
|
int |
getTilesetX()
Returns the tileset x coordinate.
|
int |
getTilesetY()
Returns the tileset y coordinate.
|
int |
hashCode() |
boolean |
isFixedLogin()
Returns the fixed login attribute.
|
boolean |
isNoHarm()
Returns the no harm attribute.
|
boolean |
isNoMagic()
Returns the no magic attribute.
|
boolean |
isNoPriest()
Returns the no priest attribute.
|
boolean |
isNoSave()
Returns the no save attribute.
|
boolean |
isNoSummon()
Returns the no summon attribute.
|
boolean |
isPermDeath()
Returns the permanent death attribute.
|
boolean |
isPvp()
Returns the pvp attribute.
|
boolean |
isUltimateDeath()
Returns the ultimate death attribute.
|
boolean |
isUltraDeath()
Returns the ultra death 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 |
setNoHarm(boolean noHarm)
Sets the no harm attribute.
|
void |
setNoMagic(boolean noMagic)
Sets the no magic attribute.
|
void |
setNoPriest(boolean noPriest)
Sets the no priest attribute.
|
void |
setNoSave(boolean noSave)
Sets the no save attribute.
|
void |
setNoSummon(boolean noSummon)
Sets the no summon attribute.
|
void |
setPermDeath(boolean permDeath)
Sets the permanent death attribute.
|
void |
setPvp(boolean pvp)
Sets the pvp 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.
|
void |
setTilesetX(int tilesetX)
Sets the tileset x coordinate.
|
void |
setTilesetY(int tilesetY)
Sets the tileset y coordinate.
|
void |
setUltimateDeath(boolean ultimateDeath)
Sets the ultimate death attribute.
|
void |
setUltraDeath(boolean ultraDeath)
Sets the ultra death 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 isNoPriest()
public void setNoPriest(boolean noPriest)
noPriest
- the no priest 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 isPermDeath()
public void setPermDeath(boolean permDeath)
permDeath
- the permanent death attributepublic boolean isUltraDeath()
public void setUltraDeath(boolean ultraDeath)
ultraDeath
- the ultra death attributepublic boolean isUltimateDeath()
public void setUltimateDeath(boolean ultimateDeath)
ultimateDeath
- the ultimate death attributepublic boolean isPvp()
public void setPvp(boolean pvp)
pvp
- the pvp attributepublic int getTilesetId()
public void setTilesetId(int tilesetId)
tilesetId
- the tileset idpublic int getTilesetX()
public void setTilesetX(int tilesetX)
tilesetX
- the tileset x coordinatepublic int getTilesetY()
public void setTilesetY(int tilesetY)
tilesetY
- the tileset y coordinate@NotNull public @NotNull java.lang.String getBackgroundMusic()
public void setBackgroundMusic(@NotNull @NotNull java.lang.String backgroundMusic)
backgroundMusic
- the name or an empty string to unsetpublic 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