Index
All Classes and Interfaces|All Packages|Serialized Form
A
- all() - Method in class io.github.emcw.caching.BaseCache
- all() - Method in class io.github.emcw.map.api.Nations
- all() - Method in class io.github.emcw.map.api.Players
- all() - Method in class io.github.emcw.map.api.Residents
- all() - Method in class io.github.emcw.map.api.Towns
- APIException - Exception in io.github.emcw.exceptions
- APIException() - Constructor for exception io.github.emcw.exceptions.APIException
- APIException(String) - Constructor for exception io.github.emcw.exceptions.APIException
- area - Variable in class io.github.emcw.map.entities.ProcessedTown
- arrAsStream(JsonArray) - Static method in class io.github.emcw.utils.GsonUtil
- arrayHas(String[], String) - Static method in class io.github.emcw.utils.Funcs
- arrFromStrArr(String[]) - Static method in class io.github.emcw.utils.GsonUtil
- arrToIntArr(JsonArray) - Static method in class io.github.emcw.utils.GsonUtil
- arrToMap(JsonArray, String) - Static method in class io.github.emcw.utils.GsonUtil
- asResident(String) - Method in class io.github.emcw.map.entities.Player
- asString() - Method in interface io.github.emcw.interfaces.ISerializable
- asTree(Object) - Static method in class io.github.emcw.utils.GsonUtil
B
- BaseCache<V> - Class in io.github.emcw.caching
- BaseCache(CacheOptions) - Constructor for class io.github.emcw.caching.BaseCache
-
Abstract class acting as a parent to other cache classes and holds a reference to a Caffeine cache.
It provides the fundamental methods (get, single & all) that children automatically inherit. - BaseEntity<T> - Class in io.github.emcw.map.entities
-
A generic base class that all other entities inherit from.
- BaseEntity() - Constructor for class io.github.emcw.map.entities.BaseEntity
- build() - Method in class io.github.emcw.caching.BaseCache
C
- cache - Variable in class io.github.emcw.caching.BaseCache
- CacheOptions - Class in io.github.emcw.caching
- CacheOptions(long, TimeUnit) - Constructor for class io.github.emcw.caching.CacheOptions
- CacheOptions(long, TimeUnit, CacheStrategy) - Constructor for class io.github.emcw.caching.CacheOptions
- CacheOptions(CacheStrategy) - Constructor for class io.github.emcw.caching.CacheOptions
- CacheStrategy - Enum Class in io.github.emcw.caching
-
Specifies the caching strategy to use.
- calcArea(int[], int[]) - Static method in class io.github.emcw.utils.Funcs
- calcArea(int[], int[], int, int...) - Static method in class io.github.emcw.utils.Funcs
- Capital - Class in io.github.emcw.map.entities
- Capital(JsonObject) - Constructor for class io.github.emcw.map.entities.Capital
- CAPITAL - Variable in class io.github.emcw.map.entities.Town.Flags
- clear() - Method in class io.github.emcw.caching.BaseCache
- collectAsMap(Stream<Map.Entry<String, T>>) - Static method in class io.github.emcw.utils.Funcs
- collectEntities(Stream<? extends BaseEntity<T>>) - Static method in class io.github.emcw.utils.Funcs
- collectList(Stream<T>, Boolean) - Static method in class io.github.emcw.utils.Funcs
- ColorAdapter - Class in io.github.emcw.adapters
- ColorAdapter() - Constructor for class io.github.emcw.adapters.ColorAdapter
- configData(String) - Static method in class io.github.emcw.utils.http.DynmapAPI
- convert(Object, Class<T>) - Static method in class io.github.emcw.utils.GsonUtil
D
- desc - Variable in class io.github.emcw.map.entities.ProcessedTown
- deserialize(JsonElement, Type) - Static method in class io.github.emcw.utils.GsonUtil
- deserialize(JsonElement, Type, JsonDeserializationContext) - Method in class io.github.emcw.adapters.ColorAdapter
- deserialize(JsonElement, Type, JsonDeserializationContext) - Method in class io.github.emcw.adapters.DurationAdapter
- deserialize(String, Class<T>) - Static method in class io.github.emcw.utils.GsonUtil
- deserialize(String, Type) - Static method in class io.github.emcw.utils.GsonUtil
- difference(JsonArray, JsonArray) - Static method in class io.github.emcw.utils.GsonUtil
- difference(JsonArray, JsonArray, String) - Static method in class io.github.emcw.utils.GsonUtil
- DurationAdapter - Class in io.github.emcw.adapters
- DurationAdapter() - Constructor for class io.github.emcw.adapters.DurationAdapter
- DynmapAPI - Class in io.github.emcw.utils.http
-
Utility class for interacting with the EarthMC Dynmap asynchronously.
Note:
This class is used internally to obtain fresh data, you should never need to use it directly. - DynmapParser - Class in io.github.emcw.utils.parsers
- DynmapParser() - Constructor for class io.github.emcw.utils.parsers.DynmapParser
E
- EMCMap - Class in io.github.emcw
- EMCMap(String) - Constructor for class io.github.emcw.EMCMap
- EMCMap(String, CacheOptions, CacheOptions) - Constructor for class io.github.emcw.EMCMap
- EMCMap(String, CacheOptions, CacheOptions, boolean) - Constructor for class io.github.emcw.EMCMap
- EMCWrapper - Class in io.github.emcw
-
The main entrypoint of this library.
- EMCWrapper() - Constructor for class io.github.emcw.EMCWrapper
-
Returns a new wrapper instance.
- EMCWrapper(EMCMap, EMCMap) - Constructor for class io.github.emcw.EMCWrapper
- EMCWrapper(Boolean, Boolean) - Constructor for class io.github.emcw.EMCWrapper
-
Returns a new
EMCWrapper
instance. - empty() - Method in class io.github.emcw.caching.BaseCache
- euclidean(int, int, int, int) - Static method in class io.github.emcw.utils.Funcs
- expiry - Variable in class io.github.emcw.caching.CacheOptions
- EXPLOSIONS - Variable in class io.github.emcw.map.entities.Town.Flags
F
- fastestRoute(Location) - Method in class io.github.emcw.map.api.GPS
- fetch(String) - Static method in class io.github.emcw.utils.http.Request
- fill - Variable in class io.github.emcw.map.entities.ProcessedTown
- findRoute(Location, RouteType) - Method in class io.github.emcw.map.api.GPS
- FIRE - Variable in class io.github.emcw.map.entities.Town.Flags
- forceUpdate() - Method in class io.github.emcw.map.api.Nations
- forceUpdate() - Method in class io.github.emcw.map.api.Players
- forceUpdate() - Method in class io.github.emcw.map.api.Residents
- forceUpdate() - Method in class io.github.emcw.map.api.Towns
- fromArr(JsonArray, String) - Static method in class io.github.emcw.map.entities.Resident
- fromObj(JsonObject) - Static method in class io.github.emcw.map.entities.Location
- Funcs - Class in io.github.emcw.utils
- Funcs() - Constructor for class io.github.emcw.utils.Funcs
G
- get(String...) - Method in class io.github.emcw.caching.BaseCache
- get(String...) - Method in class io.github.emcw.map.api.Nations
- get(String...) - Method in class io.github.emcw.map.api.Players
- get(String...) - Method in class io.github.emcw.map.api.Residents
- get(String...) - Method in class io.github.emcw.map.api.Towns
- getCapital() - Method in class io.github.emcw.map.entities.Nation
- getNearby(Map<String, T>, Integer, Integer, Integer) - Method in interface io.github.emcw.interfaces.ILocatable
- getNearby(Map<String, T>, Integer, Integer, Integer, Integer) - Method in interface io.github.emcw.interfaces.ILocatable
-
Returns a new map of entities that are within the specified x and z radii given the coordinates.
- getOnline(String) - Method in class io.github.emcw.map.api.Players
- getOnline(String, String) - Static method in class io.github.emcw.map.entities.Player
-
Static helper method for retrieving an online
Player
. - getType(Class<T>) - Static method in class io.github.emcw.utils.GsonUtil
- getType(T) - Static method in class io.github.emcw.utils.GsonUtil
- GPS - Class in io.github.emcw.map.api
- GPS - Variable in class io.github.emcw.EMCMap
- GPS(EMCMap) - Constructor for class io.github.emcw.map.api.GPS
- GsonUtil - Class in io.github.emcw.utils
- GsonUtil() - Constructor for class io.github.emcw.utils.GsonUtil
H
- has(String) - Method in class io.github.emcw.caching.BaseCache
- hasAuthority() - Method in class io.github.emcw.map.entities.Resident
-
Determines whether this resident has more permissions than a regular resident.
- hasCustomNickname() - Method in class io.github.emcw.map.entities.Player
-
If this player has set a nickname.
- hidden() - Method in class io.github.emcw.map.entities.Player
-
Essentially the opposite of
Player.visible()
. - HYBRID - Enum constant in enum class io.github.emcw.caching.CacheStrategy
-
Time based, but forces update if called before interval.
I
- ILocatable<T> - Interface in io.github.emcw.interfaces
-
This class specifies that an entity is locatable and provides methods to get other nearby locatable entities.
- info - Variable in class io.github.emcw.map.entities.ProcessedTown
- instance() - Static method in class io.github.emcw.EMCWrapper
- INT_ARRAY_X - Static variable in interface io.github.emcw.interfaces.ILocatable
- INT_ARRAY_Z - Static variable in interface io.github.emcw.interfaces.ILocatable
- intersection(JsonArray, JsonArray) - Static method in class io.github.emcw.utils.GsonUtil
- invitableTowns() - Method in class io.github.emcw.map.entities.Nation
- io.github.emcw - package io.github.emcw
- io.github.emcw.adapters - package io.github.emcw.adapters
- io.github.emcw.caching - package io.github.emcw.caching
- io.github.emcw.exceptions - package io.github.emcw.exceptions
- io.github.emcw.interfaces - package io.github.emcw.interfaces
- io.github.emcw.map.api - package io.github.emcw.map.api
- io.github.emcw.map.entities - package io.github.emcw.map.entities
- io.github.emcw.utils - package io.github.emcw.utils
- io.github.emcw.utils.http - package io.github.emcw.utils.http
- io.github.emcw.utils.parsers - package io.github.emcw.utils.parsers
- IPlayerCollective - Interface in io.github.emcw.interfaces
- isDefault() - Method in class io.github.emcw.map.entities.Location
-
Whether this location points to the map center.
- ISerializable - Interface in io.github.emcw.interfaces
- isResident() - Method in class io.github.emcw.map.entities.Player
-
Check if this player is also a resident on the map this instance was retrieved from.
K
- keyAsArr(JsonObject, String) - Static method in class io.github.emcw.utils.GsonUtil
- keyAsBool(JsonObject, String) - Static method in class io.github.emcw.utils.GsonUtil
- keyAsInt(JsonObject, String) - Static method in class io.github.emcw.utils.GsonUtil
- keyAsObj(JsonObject, String) - Static method in class io.github.emcw.utils.GsonUtil
- keyAsStr(JsonObject, String) - Static method in class io.github.emcw.utils.GsonUtil
L
- LAZY - Enum constant in enum class io.github.emcw.caching.CacheStrategy
-
Only update on next call (expiry should be set)
- listToMap(List<BaseEntity<T>>) - Static method in class io.github.emcw.utils.Funcs
- Location - Class in io.github.emcw.map.entities
- Location() - Constructor for class io.github.emcw.map.entities.Location
-
Default location representing 0, 64, 0.
- Location(Integer, Integer) - Constructor for class io.github.emcw.map.entities.Location
-
A location in 2D space.
- Location(Integer, Integer, Integer) - Constructor for class io.github.emcw.map.entities.Location
-
A location in 3D space.
- locationIsDefault() - Method in class io.github.emcw.map.entities.Player
-
Whether this player is located at the default Dynmap location.
M
- manhattan(int, int, int, int) - Static method in class io.github.emcw.utils.Funcs
- manhattan(Location, Location) - Static method in class io.github.emcw.utils.Funcs
- mapData() - Static method in class io.github.emcw.utils.http.SquaremapAPI
- mapData(String) - Static method in class io.github.emcw.utils.http.DynmapAPI
- mapInstance(String) - Static method in class io.github.emcw.utils.Funcs
- mapToArr(Map<String, T>) - Static method in class io.github.emcw.utils.GsonUtil
- mapToList(Map<K, V>) - Static method in class io.github.emcw.utils.Funcs
- mapToObj(Map<String, JsonObject>) - Static method in class io.github.emcw.utils.GsonUtil
- MissingEntryException - Exception in io.github.emcw.exceptions
- MissingEntryException() - Constructor for exception io.github.emcw.exceptions.MissingEntryException
- MissingEntryException(String) - Constructor for exception io.github.emcw.exceptions.MissingEntryException
- MOBS - Variable in class io.github.emcw.map.entities.Town.Flags
N
- name - Variable in class io.github.emcw.map.entities.ProcessedTown
- Nation - Class in io.github.emcw.map.entities
- Nation(JsonObject, String) - Constructor for class io.github.emcw.map.entities.Nation
-
Creates a new Nation by parsing raw data.
Should NOT be called explicitly unless you know what you are doing! - nationless() - Method in class io.github.emcw.map.entities.Town
- Nations - Class in io.github.emcw.map.api
- Nations - Variable in class io.github.emcw.EMCMap
- Nations(EMCMap, CacheOptions) - Constructor for class io.github.emcw.map.api.Nations
- nearby(Location, Integer, Integer) - Method in class io.github.emcw.map.api.Players
- nearby(Player, Integer, Integer) - Method in class io.github.emcw.map.api.Players
- nearby(Integer, Integer, Integer) - Method in class io.github.emcw.map.api.Players
- nearby(Integer, Integer, Integer, Integer) - Method in class io.github.emcw.map.api.Players
O
- of(JsonObject) - Static method in class io.github.emcw.map.entities.Location
- OfficialAPI - Class in io.github.emcw.utils.http
- OfficialAPI() - Constructor for class io.github.emcw.utils.http.OfficialAPI
- OfficialAPI.Towns - Class in io.github.emcw.utils.http
- online() - Method in class io.github.emcw.map.api.Players
- online(String) - Method in class io.github.emcw.map.entities.Player
-
Check if this player is online in the inputted map.
- onlineResidents() - Method in class io.github.emcw.map.entities.Nation
-
All residents that are online in this Nation.
- onlineResidents() - Method in class io.github.emcw.map.entities.Town
- onlineResidents(List<Resident>, BaseEntity<?>) - Method in interface io.github.emcw.interfaces.IPlayerCollective
-
Returns a new list of residents who are found to be online in the parent map.
- options - Variable in class io.github.emcw.caching.BaseCache
- outline - Variable in class io.github.emcw.map.entities.ProcessedTown
P
- parsedNations(String) - Static method in class io.github.emcw.utils.parsers.DynmapParser
- parsedPlayers() - Static method in class io.github.emcw.utils.parsers.DynmapParser
- parsedResidents() - Static method in class io.github.emcw.utils.parsers.DynmapParser
- parsedTowns() - Static method in class io.github.emcw.utils.parsers.DynmapParser
- parseMapData(String) - Static method in class io.github.emcw.utils.parsers.DynmapParser
- parseMapData(String, Boolean, Boolean, Boolean) - Static method in class io.github.emcw.utils.parsers.DynmapParser
- parsePlayerData(String) - Static method in class io.github.emcw.utils.parsers.DynmapParser
- Player - Class in io.github.emcw.map.entities
- Player(Player) - Constructor for class io.github.emcw.map.entities.Player
- Player(JsonObject) - Constructor for class io.github.emcw.map.entities.Player
- Player(JsonObject, Boolean) - Constructor for class io.github.emcw.map.entities.Player
- Player(JsonObject, Boolean, Boolean) - Constructor for class io.github.emcw.map.entities.Player
- playerData() - Static method in class io.github.emcw.utils.http.SquaremapAPI
- playerData(String) - Static method in class io.github.emcw.utils.http.DynmapAPI
- Players - Class in io.github.emcw.map.api
- Players - Variable in class io.github.emcw.EMCMap
- Players(EMCMap, CacheOptions) - Constructor for class io.github.emcw.map.api.Players
- ProcessedTown - Class in io.github.emcw.map.entities
- ProcessedTown(JsonObject) - Constructor for class io.github.emcw.map.entities.ProcessedTown
- processFlags(String) - Static method in class io.github.emcw.map.entities.ProcessedTown
- PUBLIC - Variable in class io.github.emcw.map.entities.Town.Flags
- put(String, V) - Method in class io.github.emcw.caching.BaseCache
- putAll(Map<? extends String, ? extends V>) - Method in class io.github.emcw.caching.BaseCache
- PVP - Variable in class io.github.emcw.map.entities.Town.Flags
R
- range(int[]) - Static method in class io.github.emcw.utils.Funcs
- removeListDuplicates(List<T>) - Static method in class io.github.emcw.utils.Funcs
- Request - Class in io.github.emcw.utils.http
- Request() - Constructor for class io.github.emcw.utils.http.Request
- Resident - Class in io.github.emcw.map.entities
- Resident(JsonObject) - Constructor for class io.github.emcw.map.entities.Resident
- Resident(JsonObject, JsonObject) - Constructor for class io.github.emcw.map.entities.Resident
- Resident(JsonObject, Player) - Constructor for class io.github.emcw.map.entities.Resident
- residentList() - Method in class io.github.emcw.map.entities.Nation
-
Helper method to reduce mapping over
Nation.residents
for names. - Residents - Class in io.github.emcw.map.api
- Residents - Variable in class io.github.emcw.EMCMap
- Residents(EMCMap, CacheOptions) - Constructor for class io.github.emcw.map.api.Residents
S
- safestRoute(Location) - Method in class io.github.emcw.map.api.GPS
- send(String) - Static method in class io.github.emcw.utils.http.Request
- serialize(Color, Type, JsonSerializationContext) - Method in class io.github.emcw.adapters.ColorAdapter
- serialize(Object) - Static method in class io.github.emcw.utils.GsonUtil
- serialize(Duration, Type, JsonSerializationContext) - Method in class io.github.emcw.adapters.DurationAdapter
- serverInfo() - Method in class io.github.emcw.utils.http.OfficialAPI
- setInfo(T, String) - Method in class io.github.emcw.map.entities.BaseEntity
- setLocation(JsonObject, Boolean) - Method in class io.github.emcw.map.entities.Player
- single(String) - Method in class io.github.emcw.caching.BaseCache
- single(String) - Method in class io.github.emcw.map.api.Nations
- single(String) - Method in class io.github.emcw.map.api.Players
- single(String) - Method in class io.github.emcw.map.api.Residents
- single(String) - Method in class io.github.emcw.map.api.Towns
- SquaremapAPI - Class in io.github.emcw.utils.http
- SquaremapParser - Class in io.github.emcw.utils.parsers
- SquaremapParser() - Constructor for class io.github.emcw.utils.parsers.SquaremapParser
- strArrAsStream(String[]) - Static method in class io.github.emcw.utils.GsonUtil
- strategy - Variable in class io.github.emcw.caching.CacheOptions
- streamEntries(JsonObject) - Static method in class io.github.emcw.utils.GsonUtil
- streamEntries(Map<String, T>) - Static method in class io.github.emcw.utils.GsonUtil
- streamIntRange(int, int...) - Static method in class io.github.emcw.utils.Funcs
- streamInts(int...) - Static method in class io.github.emcw.utils.Funcs
- streamList(List<T>) - Static method in class io.github.emcw.utils.Funcs
- streamValues(Map<String, T>) - Static method in class io.github.emcw.utils.GsonUtil
T
- TIME_BASED - Enum constant in enum class io.github.emcw.caching.CacheStrategy
-
Always update at an interval (expiry not needed)
- toList(Object) - Static method in class io.github.emcw.utils.GsonUtil
- Town - Class in io.github.emcw.map.entities
- Town(JsonObject) - Constructor for class io.github.emcw.map.entities.Town
- Town(Capital) - Constructor for class io.github.emcw.map.entities.Town
- Town.Flags - Class in io.github.emcw.map.entities
- townless() - Method in class io.github.emcw.map.api.Players
- Towns - Class in io.github.emcw.map.api
- Towns - Variable in class io.github.emcw.EMCMap
- Towns() - Constructor for class io.github.emcw.utils.http.OfficialAPI.Towns
- Towns(EMCMap, CacheOptions) - Constructor for class io.github.emcw.map.api.Towns
- track() - Method in class io.github.emcw.map.api.GPS
- tryExpire() - Method in class io.github.emcw.caching.BaseCache
- tryUpdate() - Method in class io.github.emcw.map.api.Nations
- tryUpdate() - Method in class io.github.emcw.map.api.Players
- tryUpdate() - Method in class io.github.emcw.map.api.Residents
- tryUpdate() - Method in class io.github.emcw.map.api.Towns
U
- unit - Variable in class io.github.emcw.caching.CacheOptions
- updateCache(Boolean) - Method in class io.github.emcw.map.api.Players
- updateIf(CacheStrategy) - Method in class io.github.emcw.caching.BaseCache
- updater - Variable in class io.github.emcw.caching.BaseCache
V
- valid() - Method in class io.github.emcw.map.entities.Location
-
Check if this location is properly initialized.
- valueAsObj(Map.Entry<String, T>) - Static method in class io.github.emcw.utils.GsonUtil
- valueOf(String) - Static method in enum class io.github.emcw.caching.CacheStrategy
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class io.github.emcw.caching.CacheStrategy
-
Returns an array containing the constants of this enum class, in the order they are declared.
- visible() - Method in class io.github.emcw.map.entities.Player
-
If this player is visible on the Dynmap.
W
- withinRadius(Integer, Integer[]) - Static method in class io.github.emcw.utils.Funcs
- withinRadius(Integer, Integer, Integer) - Static method in class io.github.emcw.utils.Funcs
X
- x - Variable in class io.github.emcw.map.entities.ProcessedTown
Z
- z - Variable in class io.github.emcw.map.entities.ProcessedTown
All Classes and Interfaces|All Packages|Serialized Form