Index

A B C D E F G H I J K L M N O P Q R S T U V W 
All Classes and Interfaces|All Packages|Serialized Form

A

APIException - Exception Class in io.github.emcw.exceptions
 
APIException(String) - Constructor for exception class io.github.emcw.exceptions.APIException
 
APIException(HttpUrl, int, String) - Constructor for exception class io.github.emcw.exceptions.APIException
 
APIException(Response) - Constructor for exception class io.github.emcw.exceptions.APIException
 
area - Variable in class io.github.emcw.squaremap.entities.SquaremapMarker
 
arrAsJsonArray(Object[]) - Static method in class io.github.emcw.utils.GsonUtil
 
arrAsStream(JsonArray) - Static method in class io.github.emcw.utils.GsonUtil
 
arrToIntArr(JsonArray) - Static method in class io.github.emcw.utils.GsonUtil
 
asString() - Method in exception class io.github.emcw.exceptions.APIException
 
asString() - Method in interface io.github.emcw.interfaces.IGsonSerializable
Serializes this object into its equivalent JSON representation.
asString() - Method in class io.github.emcw.oapi.v3.types.RequestBodyV3
 
asTree(Object) - Static method in class io.github.emcw.utils.GsonUtil
Serializes the specified object into its equivalent representation as a tree of JsonElements.
ASYNC() - Constructor for class io.github.emcw.utils.http.JSONRequest.ASYNC
 
AURORA - Enum constant in enum class io.github.emcw.KnownMap
 

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 (getAll, getSingle invalid input: '&' getMultiple) that children automatically inherit.

It also initializes the scheduler which updates or expires data based on the CacheStrategy of the given options.
board - Variable in class io.github.emcw.squaremap.entities.SquaremapMarker
 
bounds - Variable in class io.github.emcw.squaremap.entities.SquaremapMarker
 

C

cacheIsEmpty() - Method in class io.github.emcw.caching.BaseCache
Reports whether the cache contains no entries.
CacheOptions - Class in io.github.emcw.caching
 
CacheOptions(CacheStrategy, long, TimeUnit) - Constructor for class io.github.emcw.caching.CacheOptions
Creates a new options instance that will be passed when building a cache.

If strategy is CacheStrategy.TIME_BASED, the cache will automatically update after the duration, otherwise it must be CacheStrategy.LAZY and will be emptied until
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
 
collectAsMap(Stream<Map.Entry<String, T>>) - Static method in class io.github.emcw.utils.Funcs
 
collectList(Stream<T>, Boolean) - Static method in class io.github.emcw.utils.Funcs
 
color - Variable in class io.github.emcw.squaremap.entities.SquaremapMarker
 
ColorAdapter - Class in io.github.emcw.adapters
 
ColorAdapter() - Constructor for class io.github.emcw.adapters.ColorAdapter
 
contentType - Static variable in class io.github.emcw.utils.http.JSONRequest
 
convert(Object, Class<T>) - Static method in class io.github.emcw.utils.GsonUtil
 
councillors - Variable in class io.github.emcw.squaremap.entities.SquaremapMarker
 

D

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
 
Direction - Enum Class in io.github.emcw.common
 
discord(DiscordReqObj[]) - Method in class io.github.emcw.oapi.OfficialAPI.V3
 
DiscordReqObj - Record Class in io.github.emcw.oapi.v3.types
 
DiscordReqObj(String, String) - Constructor for record class io.github.emcw.oapi.v3.types.DiscordReqObj
Creates an instance of a DiscordReqObj record class.
DiscordResObj - Record Class in io.github.emcw.oapi.v3.types
 
DiscordResObj(String, String) - Constructor for record class io.github.emcw.oapi.v3.types.DiscordResObj
Creates an instance of a DiscordResObj record class.
DOMAIN - Static variable in class io.github.emcw.oapi.OfficialAPI
 
DurationAdapter - Class in io.github.emcw.adapters
 
DurationAdapter() - Constructor for class io.github.emcw.adapters.DurationAdapter
 

E

EAST - Enum constant in enum class io.github.emcw.common.Direction
 
EMCWrapper - Class in io.github.emcw
The main entrypoint of this library.
EMCWrapper() - Constructor for class io.github.emcw.EMCWrapper
 
Endpoints - Class in io.github.emcw.utils.http
 
Endpoints() - Constructor for class io.github.emcw.utils.http.Endpoints
 
Entity - Class in io.github.emcw.common
 
Entity(String, String) - Constructor for class io.github.emcw.common.Entity
 
Entity(UUID, String) - Constructor for class io.github.emcw.common.Entity
 
equals(Object) - Method in record class io.github.emcw.oapi.v3.types.DiscordReqObj
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class io.github.emcw.oapi.v3.types.DiscordResObj
Indicates whether some other object is "equal to" this one.
euclidean(int, int, int, int) - Static method in class io.github.emcw.utils.Funcs
Calculates the straight-line distance between two locations, ignoring any obstacles or other factors.
euclidean(Point2D, Point2D) - Static method in class io.github.emcw.utils.Funcs
Calculates the distance between two instances of Point2D using Euclidean geometry.

F

facingDirection() - Method in class io.github.emcw.squaremap.entities.SquaremapOnlinePlayer
 
fetchCacheData() - Method in class io.github.emcw.caching.BaseCache
 
fetchCacheData() - Method in class io.github.emcw.squaremap.api.Nations
 
fetchCacheData() - Method in class io.github.emcw.squaremap.api.Players
 
fetchCacheData() - Method in class io.github.emcw.squaremap.api.Residents
 
fetchCacheData() - Method in class io.github.emcw.squaremap.api.Towns
 
fillColor - Variable in class io.github.emcw.squaremap.entities.SquaremapMarker
 
Flags(boolean, boolean) - Constructor for class io.github.emcw.squaremap.entities.SquaremapTown.Flags
 
Flags(JsonObject) - Constructor for class io.github.emcw.squaremap.entities.SquaremapTown.Flags
 
flattenJsonArr(JsonArray, int) - Static method in class io.github.emcw.utils.GsonUtil
 
founded - Variable in class io.github.emcw.squaremap.entities.SquaremapMarker
 
Funcs - Class in io.github.emcw.utils
 
Funcs() - Constructor for class io.github.emcw.utils.Funcs
 

G

get() - Static method in class io.github.emcw.utils.http.Endpoints
 
getAll() - Method in class io.github.emcw.caching.BaseCache
Returns a thread-safe view of this cache as a Map.

Some subclasses may override this to implement additional behaviour.
getBounds(JsonArray) - Static method in class io.github.emcw.squaremap.entities.SquaremapMarker
Parses SquaremapMarker.points into two seperate arrays, which we call bounds for the sake of simplicity.

For example:
[{ "x": 500, z": -200 }, { "x": 7000, "z: "80" }]

Would become:
Pairinvalid input: '<'[500, 7000], [-200, 80]>
getByResidency(boolean) - Method in class io.github.emcw.squaremap.api.Players
Similar to BaseCache.getAll(), this method gets all the players but only includes those that match a certain residential status indicated by the hasTown parameter.

NOTE: If the intention is to call this method twice, once for townless and another for towned players, consider using Players.getSorted() instead to sort them in a single forEach pass and avoid unnecessary operations.
getCouncillorNames() - Method in class io.github.emcw.squaremap.entities.SquaremapMarker
 
getFoundedTimestamp() - Method in class io.github.emcw.squaremap.entities.SquaremapTown
 
getMultiple(String...) - Method in class io.github.emcw.caching.BaseCache
Returns a new list containing only the values of the specified keys by calling BaseCache.getAll() and filtering out any that aren't in keys, then getting the values of those left as a list.
getNamesFromString(String) - Static method in class io.github.emcw.squaremap.entities.SquaremapMarker
 
getNearby(SquaremapLocation, Integer, Integer) - Method in class io.github.emcw.squaremap.api.Players
 
getNearby(SquaremapOnlinePlayer, Integer, Integer) - Method in class io.github.emcw.squaremap.api.Players
 
getNearby(Integer, Integer, Integer) - Method in class io.github.emcw.squaremap.api.Players
 
getNearby(Integer, Integer, Integer, Integer) - Method in class io.github.emcw.squaremap.api.Players
 
getNearbyEntities(Map<String, T>, Integer, Integer, Integer) - Method in interface io.github.emcw.interfaces.ILocatable
 
getNearbyEntities(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() - Method in class io.github.emcw.squaremap.api.Residents
 
getOrFetchMapData() - Method in class io.github.emcw.squaremap.SquaremapParser
 
getResidentNames() - Method in class io.github.emcw.squaremap.entities.SquaremapMarker
 
getSingle(String) - Method in class io.github.emcw.caching.BaseCache
Attempts to get a single element from the cache.
getSorted() - Method in class io.github.emcw.squaremap.api.Players
Gets online players and sorts them into two seperate maps in a single pass.
A new Pair is returned, where the first contains players with a town and the second without.
getSquaremap(KnownMap) - Method in class io.github.emcw.EMCWrapper
 
getType(Class<T>) - Static method in class io.github.emcw.utils.GsonUtil
 
getType(T) - Static method in class io.github.emcw.utils.GsonUtil
 
GsonUtil - Class in io.github.emcw.utils
 
GsonUtil() - Constructor for class io.github.emcw.utils.GsonUtil
 

H

hasAuthority() - Method in class io.github.emcw.squaremap.entities.SquaremapOnlineResident
Checks whether this resident has more permissions than a regular resident.
hasAuthority() - Method in class io.github.emcw.squaremap.entities.SquaremapResident
Checks whether this resident has more permissions than a regular resident.
hasCustomName() - Method in class io.github.emcw.squaremap.entities.SquaremapOnlinePlayer
If this player has set a nickname.
hashCode() - Method in record class io.github.emcw.oapi.v3.types.DiscordReqObj
Returns a hash code value for this object.
hashCode() - Method in record class io.github.emcw.oapi.v3.types.DiscordResObj
Returns a hash code value for this object.

I

id() - Method in record class io.github.emcw.oapi.v3.types.DiscordResObj
Returns the value of the id record component.
IGsonSerializable - Interface in io.github.emcw.interfaces
 
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.
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
 
invitableFromNation(SquaremapNation) - Method in class io.github.emcw.squaremap.api.Towns
Gets all towns that the specified nation can invite by measuring their distances.
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.common - package io.github.emcw.common
 
io.github.emcw.exceptions - package io.github.emcw.exceptions
 
io.github.emcw.interfaces - package io.github.emcw.interfaces
 
io.github.emcw.oapi - package io.github.emcw.oapi
 
io.github.emcw.oapi.v3.types - package io.github.emcw.oapi.v3.types
 
io.github.emcw.squaremap - package io.github.emcw.squaremap
 
io.github.emcw.squaremap.api - package io.github.emcw.squaremap.api
 
io.github.emcw.squaremap.entities - package io.github.emcw.squaremap.entities
 
io.github.emcw.utils - package io.github.emcw.utils
 
io.github.emcw.utils.http - package io.github.emcw.utils.http
 
isCapital - Variable in class io.github.emcw.squaremap.entities.SquaremapMarker
 
isCouncillor() - Method in class io.github.emcw.squaremap.entities.SquaremapOnlineResident
 
isCouncillor() - Method in class io.github.emcw.squaremap.entities.SquaremapResident
 
isInOverworld() - Method in class io.github.emcw.squaremap.entities.SquaremapOnlinePlayer
If this player is visible on the map.
isMapCenter() - Method in class io.github.emcw.squaremap.entities.SquaremapLocation
Whether this location points to the center of the map.

Shorthand for x == 0 && z == 0.
isMayor() - Method in class io.github.emcw.squaremap.entities.SquaremapOnlineResident
 
isMayor() - Method in class io.github.emcw.squaremap.entities.SquaremapResident
 
isNationLeader() - Method in class io.github.emcw.squaremap.entities.SquaremapOnlineResident
 
isNationLeader() - Method in class io.github.emcw.squaremap.entities.SquaremapResident
 
isNationless() - Method in class io.github.emcw.squaremap.entities.SquaremapTown
 
isValidPoint() - Method in class io.github.emcw.squaremap.entities.SquaremapLocation
Check if this location is properly initialized.

Shorthand for x != null && z != null.

J

jsonArrToMap(JsonArray, String) - Static method in class io.github.emcw.utils.GsonUtil
 
JSONRequest - Class in io.github.emcw.utils.http
 
JSONRequest() - Constructor for class io.github.emcw.utils.http.JSONRequest
 
JSONRequest.ASYNC - Class in io.github.emcw.utils.http
 

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
 
keyAsDouble(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
 
KnownMap - Enum Class in io.github.emcw
 

L

LAZY - Enum constant in enum class io.github.emcw.caching.CacheStrategy
Only update on next call if expired (expiry should be set).
location - Variable in class io.github.emcw.squaremap.entities.SquaremapMarker
 
location(Point2D[]) - Method in class io.github.emcw.oapi.OfficialAPI.V3
 

M

manhattan(int, int, int, int) - Static method in class io.github.emcw.utils.Funcs
Calculates the Manhattan (sometimes referred to as "taxi-cab") distance between two locations, which is the sum of the absolute differences of their X and Z coordinates.
manhattan(Point2D, Point2D) - Static method in class io.github.emcw.utils.Funcs
Calculates the distance between two instances of Point2D using Taxi-cab geometry.
MAP_ENDPOINT - Variable in class io.github.emcw.oapi.OfficialAPI.V3
 
mapData(String) - Static method in class io.github.emcw.squaremap.SquaremapAPI
 
mapToArr(Map<String, T>) - Static method in class io.github.emcw.utils.GsonUtil
 
mapToObj(Map<String, JsonObject>) - Static method in class io.github.emcw.utils.GsonUtil
 
matches(String) - Method in enum class io.github.emcw.common.Direction
 
mayor - Variable in class io.github.emcw.squaremap.entities.SquaremapMarker
 
midrange(int[]) - Static method in class io.github.emcw.utils.Funcs
Applies the Midrange Formula to the input array, the result is then rounded to the nearest full integer.
MissingEntryException - Exception Class in io.github.emcw.exceptions
 
MissingEntryException() - Constructor for exception class io.github.emcw.exceptions.MissingEntryException
 
MissingEntryException(String) - Constructor for exception class io.github.emcw.exceptions.MissingEntryException
 
moonPhase - Variable in class io.github.emcw.oapi.v3.types.ServerInfo
The current phase of the moon.

N

name - Variable in class io.github.emcw.common.Entity
 
nationName - Variable in class io.github.emcw.squaremap.entities.SquaremapMarker
 
nations(String[]) - Method in class io.github.emcw.oapi.OfficialAPI.V3
 
Nations - Class in io.github.emcw.squaremap.api
 
Nations - Variable in class io.github.emcw.Squaremap
 
Nations(SquaremapParser, CacheOptions) - Constructor for class io.github.emcw.squaremap.api.Nations
 
nationsList() - Method in class io.github.emcw.oapi.OfficialAPI.V3
 
nationWiki - Variable in class io.github.emcw.squaremap.entities.SquaremapMarker
 
NORTH - Enum constant in enum class io.github.emcw.common.Direction
 
NORTHEAST - Enum constant in enum class io.github.emcw.common.Direction
 
NORTHWEST - Enum constant in enum class io.github.emcw.common.Direction
 

O

of(int[], int[]) - Static method in class io.github.emcw.squaremap.entities.SquaremapLocation
 
OfficialAPI - Class in io.github.emcw.oapi
Wrapper around the official EarthMC API.
OfficialAPI() - Constructor for class io.github.emcw.oapi.OfficialAPI
 
OfficialAPI.V3 - Class in io.github.emcw.oapi
Simple class for interacting with the 3rd version of the API.

P

parallelStreamArr(T[]) - Static method in class io.github.emcw.utils.Funcs
 
parseMapData(Boolean, Boolean, Boolean) - Method in class io.github.emcw.squaremap.SquaremapParser
 
parsePlayerData() - Method in class io.github.emcw.squaremap.SquaremapParser
 
parsePopup(String) - Static method in class io.github.emcw.squaremap.entities.SquaremapMarker
 
parseTooltip(String) - Static method in class io.github.emcw.squaremap.entities.SquaremapMarker
 
Player - Class in io.github.emcw.oapi.v3.types
 
Player(String, String) - Constructor for class io.github.emcw.oapi.v3.types.Player
 
playerData(String) - Static method in class io.github.emcw.squaremap.SquaremapAPI
 
players(String[]) - Method in class io.github.emcw.oapi.OfficialAPI.V3
 
Players - Class in io.github.emcw.squaremap.api
 
Players - Variable in class io.github.emcw.Squaremap
 
Players(SquaremapParser, CacheOptions) - Constructor for class io.github.emcw.squaremap.api.Players
 
playersList() - Method in class io.github.emcw.oapi.OfficialAPI.V3
 
Point2D - Class in io.github.emcw.common
 
Point2D(int, int) - Constructor for class io.github.emcw.common.Point2D
 
points - Variable in class io.github.emcw.squaremap.entities.SquaremapMarker
 
PUBLIC - Variable in class io.github.emcw.squaremap.entities.SquaremapMarker
 
PUBLIC - Variable in class io.github.emcw.squaremap.entities.SquaremapTown.Flags
 
PVP - Variable in class io.github.emcw.squaremap.entities.SquaremapMarker
 
PVP - Variable in class io.github.emcw.squaremap.entities.SquaremapTown.Flags
 

Q

quarters(String[]) - Method in class io.github.emcw.oapi.OfficialAPI.V3
 
quartersList() - Method in class io.github.emcw.oapi.OfficialAPI.V3
 

R

registerSquaremap(KnownMap) - Method in class io.github.emcw.EMCWrapper
 
registerSquaremap(KnownMap, boolean) - Method in class io.github.emcw.EMCWrapper
 
registerSquaremap(KnownMap, CacheOptions, CacheOptions, boolean) - Method in class io.github.emcw.EMCWrapper
 
removeListDuplicates(List<T>) - Static method in class io.github.emcw.utils.Funcs
 
RequestBodyV3 - Class in io.github.emcw.oapi.v3.types
 
RequestBodyV3(JsonElement) - Constructor for class io.github.emcw.oapi.v3.types.RequestBodyV3
 
RequestBodyV3(Point2D[]) - Constructor for class io.github.emcw.oapi.v3.types.RequestBodyV3
 
RequestBodyV3(DiscordReqObj[]) - Constructor for class io.github.emcw.oapi.v3.types.RequestBodyV3
 
RequestBodyV3(String[]) - Constructor for class io.github.emcw.oapi.v3.types.RequestBodyV3
 
residents - Variable in class io.github.emcw.squaremap.entities.SquaremapMarker
 
Residents - Class in io.github.emcw.squaremap.api
 
Residents - Variable in class io.github.emcw.Squaremap
 
Residents(SquaremapParser, CacheOptions) - Constructor for class io.github.emcw.squaremap.api.Residents
 
roundToNearest16(double) - Static method in class io.github.emcw.utils.Funcs
 
roundToNearest16(int) - Static method in class io.github.emcw.utils.Funcs
 

S

sendGet(String) - Static method in class io.github.emcw.utils.http.JSONRequest
Send GET request and get a JSON response back.
sendGet(String) - Static method in class io.github.emcw.utils.http.JSONRequest.ASYNC
 
sendPost(String, String) - Static method in class io.github.emcw.utils.http.JSONRequest
Send POST request with a body and get a JSON response back.
sendPost(String, String) - Static method in class io.github.emcw.utils.http.JSONRequest.ASYNC
 
sendRequest(String) - Method in class io.github.emcw.oapi.OfficialAPI.V3
Sends a GET request to the given endpoint.

To send a POST request, provide a RequestBodyV3 as the second argument.
sendRequest(String, RequestBodyV3) - Method in class io.github.emcw.oapi.OfficialAPI.V3
Sends a POST request to the given endpoint with a valid body.
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.oapi.OfficialAPI.V3
 
ServerInfo - Class in io.github.emcw.oapi.v3.types
 
ServerInfo(JsonObject) - Constructor for class io.github.emcw.oapi.v3.types.ServerInfo
 
SOUTH - Enum constant in enum class io.github.emcw.common.Direction
 
SOUTHEAST - Enum constant in enum class io.github.emcw.common.Direction
 
SOUTHWEST - Enum constant in enum class io.github.emcw.common.Direction
 
Squaremap - Class in io.github.emcw
 
SquaremapAPI - Class in io.github.emcw.squaremap
 
SquaremapAPI() - Constructor for class io.github.emcw.squaremap.SquaremapAPI
 
SquaremapCapital - Class in io.github.emcw.squaremap.entities
 
SquaremapCapital(JsonObject) - Constructor for class io.github.emcw.squaremap.entities.SquaremapCapital
 
SquaremapCapital(SquaremapMarker) - Constructor for class io.github.emcw.squaremap.entities.SquaremapCapital
 
SquaremapLocation - Class in io.github.emcw.squaremap.entities
 
SquaremapLocation(Integer, Integer) - Constructor for class io.github.emcw.squaremap.entities.SquaremapLocation
A point in 2D space.
SquaremapLocation(Integer, Integer, Integer) - Constructor for class io.github.emcw.squaremap.entities.SquaremapLocation
A point in 3D space.
SquaremapMarker - Class in io.github.emcw.squaremap.entities
Represents a map marker from the Squaremap API.
SquaremapMarker(JsonObject) - Constructor for class io.github.emcw.squaremap.entities.SquaremapMarker
 
SquaremapNation - Class in io.github.emcw.squaremap.entities
 
SquaremapNation(String) - Constructor for class io.github.emcw.squaremap.entities.SquaremapNation
Creates a new Nation whose info should be subsequently set with SquaremapNation.updateInfo(SquaremapMarker, Set, Set).

For internal use only!
Explicit construction of this class is not advised unless you know what you are doing.
SquaremapOnlinePlayer - Class in io.github.emcw.squaremap.entities
 
SquaremapOnlinePlayer(JsonObject) - Constructor for class io.github.emcw.squaremap.entities.SquaremapOnlinePlayer
Use when we need to create a new online player from raw data.
SquaremapOnlinePlayer(SquaremapOnlinePlayer) - Constructor for class io.github.emcw.squaremap.entities.SquaremapOnlinePlayer
Copy constructor.

Use when a class extends this class and other data needs to be merged.
SquaremapOnlineResident - Class in io.github.emcw.squaremap.entities
 
SquaremapOnlineResident(SquaremapOnlinePlayer, SquaremapResident) - Constructor for class io.github.emcw.squaremap.entities.SquaremapOnlineResident
 
SquaremapParser - Class in io.github.emcw.squaremap
 
SquaremapParser(String) - Constructor for class io.github.emcw.squaremap.SquaremapParser
 
SquaremapResident - Class in io.github.emcw.squaremap.entities
 
SquaremapResident(String, SquaremapMarker, boolean) - Constructor for class io.github.emcw.squaremap.entities.SquaremapResident
 
SquaremapTown - Class in io.github.emcw.squaremap.entities
 
SquaremapTown(SquaremapMarker, Set<String>, Set<String>) - Constructor for class io.github.emcw.squaremap.entities.SquaremapTown
Takes a basic parsed marker and parses it further to create a full object representative of a Town on a Squaremap map, with some helper methods attached.
SquaremapTown.Flags - Class in io.github.emcw.squaremap.entities
 
strArrHas(String[], String) - Static method in class io.github.emcw.utils.Funcs
 
streamEntries(JsonObject) - Static method in class io.github.emcw.utils.GsonUtil
 
streamEntries(Map<String, T>) - Static method in class io.github.emcw.utils.GsonUtil
 
streamValues(Map<String, T>) - Static method in class io.github.emcw.utils.GsonUtil
 
stringToFullUUID(String) - Static method in class io.github.emcw.utils.Funcs
Ensures a UUID is full (with hyphens) by inserting them at known points in the string.

If the given string is 36 characters (full uuid), it will use that one without inserting.

T

target() - Method in record class io.github.emcw.oapi.v3.types.DiscordReqObj
Returns the value of the target record component.
TIME_BASED - Enum constant in enum class io.github.emcw.caching.CacheStrategy
Always update at an interval (expiry not needed).
toList(JsonElement) - Static method in class io.github.emcw.utils.GsonUtil
Serializes the input el, and deserializes it back as a list of GsonUtil.
toString() - Method in enum class io.github.emcw.common.Direction
 
toString() - Method in class io.github.emcw.common.Point2D
 
toString() - Method in record class io.github.emcw.oapi.v3.types.DiscordReqObj
Returns a string representation of this record class.
toString() - Method in record class io.github.emcw.oapi.v3.types.DiscordResObj
Returns a string representation of this record class.
townName - Variable in class io.github.emcw.squaremap.entities.SquaremapMarker
 
towns(String[]) - Method in class io.github.emcw.oapi.OfficialAPI.V3
 
Towns - Class in io.github.emcw.squaremap.api
 
Towns - Variable in class io.github.emcw.Squaremap
 
Towns(KnownMap, SquaremapParser, CacheOptions) - Constructor for class io.github.emcw.squaremap.api.Towns
 
townsList() - Method in class io.github.emcw.oapi.OfficialAPI.V3
 
townWiki - Variable in class io.github.emcw.squaremap.entities.SquaremapMarker
 
trySendAndParse(Request) - Static method in class io.github.emcw.utils.http.JSONRequest.ASYNC
 
type() - Method in record class io.github.emcw.oapi.v3.types.DiscordReqObj
Returns the value of the type record component.

U

updateCache() - Method in class io.github.emcw.caching.BaseCache
Always updates the cache, regardless of whether it has expired.

If this cache is TIME_BASED, this method is called automatically at the interval defined in BaseCache.options which was set when it was built.
updateInfo(SquaremapMarker, Set<String>, Set<String>) - Method in class io.github.emcw.squaremap.entities.SquaremapNation
 
uuid - Variable in class io.github.emcw.common.Entity
 
uuid() - Method in record class io.github.emcw.oapi.v3.types.DiscordResObj
Returns the value of the uuid record component.

V

V3(KnownMap) - Constructor for class io.github.emcw.oapi.OfficialAPI.V3
 
valueOf(String) - Static method in enum class io.github.emcw.caching.CacheStrategy
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class io.github.emcw.common.Direction
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class io.github.emcw.KnownMap
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.
values() - Static method in enum class io.github.emcw.common.Direction
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class io.github.emcw.KnownMap
Returns an array containing the constants of this enum class, in the order they are declared.
version - Variable in class io.github.emcw.oapi.v3.types.ServerInfo
The Minecraft version this server is on.

W

WEST - Enum constant in enum class io.github.emcw.common.Direction
 
withinRadius(int, int[]) - Static method in class io.github.emcw.utils.Funcs
 
withinRadius(Integer, Integer, Integer) - Static method in class io.github.emcw.utils.Funcs
 
A B C D E F G H I J K L M N O P Q R S T U V W 
All Classes and Interfaces|All Packages|Serialized Form