Package io.github.emcw.map.entities
Class Resident
java.lang.Object
io.github.emcw.map.entities.BaseEntity<Player>
io.github.emcw.map.entities.Player
io.github.emcw.map.entities.Resident
- All Implemented Interfaces:
ILocatable<Player>
,ISerializable
-
Field Summary
Fields inherited from interface io.github.emcw.interfaces.ILocatable
INT_ARRAY_X, INT_ARRAY_Z
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Determines whether this resident has more permissions than a regular resident.Methods inherited from class io.github.emcw.map.entities.Player
hasCustomNickname, hidden, isResident, locationIsDefault, setLocation, visible
Methods inherited from class io.github.emcw.map.entities.BaseEntity
setInfo
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.ILocatable
getNearby, getNearby
Methods inherited from interface io.github.emcw.interfaces.ISerializable
asString
-
Constructor Details
-
Resident
public Resident(com.google.gson.JsonObject res, com.google.gson.JsonObject op) -
Resident
-
Resident
public Resident(com.google.gson.JsonObject obj)
-
-
Method Details
-
hasAuthority
public boolean hasAuthority()Determines whether this resident has more permissions than a regular resident.
- Returns:
- true if
rank
is 'Mayor' or 'Leader', otherwise false.
-
fromArr
-