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 TypeMethodDescriptionbooleanChecks whether this resident has more permissions than a regular resident.booleanbooleanisMayor()booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
rankis aMayor,Nation LeaderorCouncillor- false otherwise.
-