Package | Description |
---|---|
io.lumine.xikage.mythicmobs.skills.variables | |
io.lumine.xikage.mythicmobs.skills.variables.types |
Modifier and Type | Method and Description |
---|---|
Variable |
VariableSerializer.deserialize(com.google.gson.JsonElement json,
Type typeOfT,
com.google.gson.JsonDeserializationContext context) |
Variable |
VariableRegistry.get(String key) |
Variable |
VariableRegistry.getOrDefault(String key,
Variable def) |
static Variable |
Variable.ofType(VariableType type,
Object value) |
static Variable |
Variable.ofType(VariableType type,
Object value,
boolean save) |
static Variable |
Variable.ofType(VariableType type,
Object value,
long expire) |
static Variable |
Variable.toType(Variable var,
VariableType type) |
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ImmutableMap<String,Variable> |
VariableRegistry.asMap()
Get the registry as an immutable map
|
static Class<? extends Variable> |
VariableUtils.getTypeClass(String type)
Gets the class of a type of variable.
|
Modifier and Type | Method and Description |
---|---|
Variable |
VariableRegistry.getOrDefault(String key,
Variable def) |
protected void |
VariableMechanic.handleDuration(Variable var) |
void |
VariableRegistry.put(String key,
Variable value)
Put the given key and variable into the registry.
|
com.google.gson.JsonElement |
VariableSerializer.serialize(Variable src,
Type typeOfSrc,
com.google.gson.JsonSerializationContext context) |
static Variable |
Variable.toType(Variable var,
VariableType type) |
Modifier and Type | Method and Description |
---|---|
static VariableType |
VariableUtils.getType(Class<? extends Variable> clazz) |
static String |
VariableUtils.getTypeName(Class<? extends Variable> clazz) |
void |
VariableRegistry.putAll(Map<String,? extends Variable> value)
Put all the entries from the given map into the registry
|
Constructor and Description |
---|
VariableRegistry(Map<String,Variable> value)
Create a new instance and use the given map (which will be modified).
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractVariable |
class |
EntityListVariable |
class |
EntityVariable |
class |
FloatVariable |
class |
IntegerVariable |
class |
StringListVariable |
class |
StringVariable |
Copyright © 2020. All rights reserved.