Class SquaremapResident
java.lang.Object
io.github.emcw.squaremap.entities.SquaremapResident
- All Implemented Interfaces:
IGsonSerializable
-
Constructor Summary
ConstructorsConstructorDescriptionSquaremapResident
(String resName, SquaremapMarker marker, boolean isCouncillor) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks whether this resident has more permissions than a regular resident.boolean
boolean
isMayor()
boolean
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.github.emcw.interfaces.IGsonSerializable
asString
-
Constructor Details
-
SquaremapResident
-
-
Method Details
-
isCouncillor
public boolean isCouncillor() -
isMayor
public boolean isMayor() -
isNationLeader
public boolean isNationLeader() -
hasAuthority
public boolean hasAuthority()Checks whether this resident has more permissions than a regular resident.
- Returns:
- true if
rank
is aMayor
,Nation Leader
orCouncillor
- false otherwise.
-