Class SquaremapOnlineResident
java.lang.Object
io.github.emcw.common.Entity
io.github.emcw.squaremap.entities.SquaremapOnlinePlayer
io.github.emcw.squaremap.entities.SquaremapOnlineResident
- All Implemented Interfaces:
IGsonSerializable
,ILocatable<SquaremapOnlinePlayer>
-
Field Summary
Fields inherited from interface io.github.emcw.interfaces.ILocatable
INT_ARRAY_X, INT_ARRAY_Z
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks whether this resident has more permissions than a regular resident.boolean
boolean
isMayor()
boolean
Methods inherited from class io.github.emcw.squaremap.entities.SquaremapOnlinePlayer
facingDirection, hasCustomName, isInOverworld
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
Methods inherited from interface io.github.emcw.interfaces.ILocatable
getNearbyEntities, getNearbyEntities
-
Constructor Details
-
SquaremapOnlineResident
-
-
Method Details
-
isMayor
public boolean isMayor() -
isNationLeader
public boolean isNationLeader() -
isCouncillor
public boolean isCouncillor() -
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.
-