public class MapArchObject extends AbstractMapArchObject<MapArchObject>
MAP_NAME_UNNAMED| Constructor and Description |
|---|
MapArchObject()
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLore(@NotNull java.lang.String text)
Appends text to the map lore.
|
@NotNull MapArchObject |
createClone()
Creates a copy of this object.
|
boolean |
equals(@Nullable java.lang.Object obj) |
@NotNull java.lang.String |
getBackgroundMusic()
Returns the background music to play.
|
int |
getFirstLoad()
Returns the timestamp the Crossfire server has loaded this map.
|
int |
getHumidity()
Returns the humidity.
|
@NotNull java.lang.String |
getLore()
Returns the map lore.
|
int |
getPressure()
Returns the pressure.
|
@NotNull java.lang.String |
getRegion()
Returns the region the map is in.
|
@NotNull java.lang.String |
getResetGroup()
Returns the reset group.
|
double |
getShopGreed()
Returns the greed of the shop.
|
@NotNull java.lang.String |
getShopItems()
Returns the item spec for the shop.
|
int |
getShopMax()
Returns the maximum price the shop will trade for.
|
int |
getShopMin()
Returns the minimum price the shop will trade for.
|
@NotNull java.lang.String |
getShopRace()
Returns the preferred race of the shop.
|
int |
getSky()
Returns the sky settings.
|
int |
getTemperature()
Returns the temperature.
|
int |
getWindDirection()
Returns the wind direction.
|
int |
getWindSpeed()
Returns the wind speed.
|
int |
hashCode() |
boolean |
isNoSmooth()
Returns whether this map is no smooth.
|
boolean |
isTemplate()
Returns whether this map is a template map.
|
boolean |
isUnique()
Get whether this map is unique.
|
void |
setBackgroundMusic(@NotNull java.lang.String backgroundMusic)
Sets the background music to play.
|
void |
setDifficulty(int difficulty)
Sets the map's difficulty.
|
void |
setFirstLoad(int firstLoad)
Sets the timestamp the Crossfire server has loaded this map.
|
void |
setHumidity(int humidity)
Sets the humidity.
|
void |
setLore(@NotNull java.lang.String text)
Sets the map lore.
|
void |
setNoSmooth(boolean noSmooth)
Sets whether this map is no smooth.
|
void |
setPressure(int pressure)
Sets the pressure.
|
void |
setRegion(@NotNull java.lang.String region)
Sets the region the map is in.
|
void |
setResetGroup(@NotNull java.lang.String resetGroup)
Sets the reset group.
|
void |
setShopGreed(double shopGreed)
Sets the greed of the shop.
|
void |
setShopItems(@NotNull java.lang.String shopItems)
Sets the item spec for the shop.
|
void |
setShopMax(int shopMax)
Sets the maximum price the shop will trade for.
|
void |
setShopMin(int shopMin)
Sets the minimum price the shop will trade for.
|
void |
setShopRace(@NotNull java.lang.String shopRace)
Sets the preferred race of the shop.
|
void |
setSky(int sky)
Sets the sky settings.
|
void |
setState(@NotNull MapArchObject mapArchObject)
Resets the state of this object to the state of the given map arch
object.
|
void |
setTemperature(int temperature)
Sets the temperature.
|
void |
setTemplate(boolean template)
Sets whether this map is a template map.
|
void |
setUnique(boolean unique)
Set whether this map is unique.
|
void |
setWindDirection(int windDirection)
sets the wind direction.
|
void |
setWindSpeed(int windSpeed)
Sets the wind speed.
|
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, updateModifiedAttributepublic void setState(@NotNull
@NotNull MapArchObject mapArchObject)
MapArchObjectsetState in interface MapArchObject<MapArchObject>setState in class AbstractMapArchObject<MapArchObject>mapArchObject - the map arch object to copy the state frompublic boolean isUnique()
public void setUnique(boolean unique)
unique - whether this map should be uniquepublic boolean isTemplate()
public void setTemplate(boolean template)
template - whether this map is a template mappublic boolean isNoSmooth()
public void setNoSmooth(boolean noSmooth)
noSmooth - whether this map is no smooth@NotNull public @NotNull java.lang.String getRegion()
public void setRegion(@NotNull
@NotNull java.lang.String region)
region - the region the map is in@NotNull public @NotNull java.lang.String getBackgroundMusic()
public void setBackgroundMusic(@NotNull
@NotNull java.lang.String backgroundMusic)
backgroundMusic - the background music to play@NotNull public @NotNull java.lang.String getShopItems()
public void setShopItems(@NotNull
@NotNull java.lang.String shopItems)
shopItems - the item spec for the shop@NotNull public @NotNull java.lang.String getShopRace()
public void setShopRace(@NotNull
@NotNull java.lang.String shopRace)
shopRace - the preferred race of te shoppublic int getShopMin()
public void setShopMin(int shopMin)
shopMin - the minimum price the shop will trade forpublic int getShopMax()
public void setShopMax(int shopMax)
shopMax - the maximum price the shop will trade forpublic double getShopGreed()
public void setShopGreed(double shopGreed)
shopGreed - the greed of the shoppublic int getTemperature()
public void setTemperature(int temperature)
temperature - the temperaturepublic int getPressure()
public void setPressure(int pressure)
pressure - the pressurepublic int getHumidity()
public void setHumidity(int humidity)
humidity - the humiditypublic int getWindSpeed()
public void setWindSpeed(int windSpeed)
windSpeed - the wind speedpublic int getWindDirection()
public void setWindDirection(int windDirection)
windDirection - the wind directionpublic int getSky()
public void setSky(int sky)
sky - the sky settingspublic void addLore(@NotNull
@NotNull java.lang.String text)
text - the text to appendpublic void setLore(@NotNull
@NotNull java.lang.String text)
text - the map lore@NotNull public @NotNull java.lang.String getLore()
public void setDifficulty(int difficulty)
MapArchObjectsetDifficulty in interface MapArchObject<MapArchObject>setDifficulty in class AbstractMapArchObject<MapArchObject>difficulty - the new difficulty for this mappublic int getFirstLoad()
public void setFirstLoad(int firstLoad)
firstLoad - the timestamp@NotNull public @NotNull java.lang.String getResetGroup()
public void setResetGroup(@NotNull
@NotNull java.lang.String resetGroup)
resetGroup - the reset grouppublic 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