Interface MemoryAPI
public interface MemoryAPI
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addRequired
(String key, String requiredKey) Can be called multiple times for a key.void
advance
(float amount) boolean
Includes both endpoints.void
clear()
boolean
void
boolean
getBoolean
(String key) float
float
int
getKeys()
long
getRequired
(String key) org.lwjgl.util.vector.Vector2f
getVector2f
(String key) boolean
boolean
boolean
boolean
isEmpty()
void
removeAllRequired
(String key) void
removeRequired
(String key, String requiredKey) void
Never expires.void
With expiration.void
-
Method Details
-
unset
-
expire
-
contains
-
is
-
is
-
is
-
set
Never expires.- Parameters:
key
-value
-
-
set
With expiration.- Parameters:
key
-value
-expire
-
-
get
-
getString
-
getFloat
-
getBoolean
-
getLong
-
getVector2f
-
getEntity
-
getFleet
-
between
Includes both endpoints.- Parameters:
key
-from
-to
-- Returns:
-
getKeys
Collection<String> getKeys() -
getExpire
-
advance
void advance(float amount) -
addRequired
Can be called multiple times for a key. If this is called, then key will be removed from memory when NONE of the requiredKeys are left in memory.- Parameters:
key
-requiredKey
-
-
removeRequired
-
isEmpty
boolean isEmpty() -
getRequired
-
removeAllRequired
-
clear
void clear() -
getInt
-