public class JsonGuiElement extends JsonVariableObject
Modifier and Type | Field and Description |
---|---|
FunctionContext |
context |
java.lang.String |
fullName |
JsonGuiIterator |
iterator |
com.google.gson.JsonObject |
json |
java.lang.String |
name |
java.util.Map<java.lang.String,java.lang.String> |
properties
Map of string
-> property. |
variables
Constructor and Description |
---|
JsonGuiElement(com.google.gson.JsonObject json,
java.lang.String name,
java.lang.String fullName,
java.util.Map<java.lang.String,JsonGuiElement> typeLookup,
FunctionContext context) |
Modifier and Type | Method and Description |
---|---|
JsonGuiElement |
getChildElement(java.lang.String childName,
com.google.gson.JsonElement elem) |
java.util.List<JsonGuiElement> |
getChildren(java.lang.String subName) |
java.util.List<JsonGuiElement> |
iterate(FunctionContext fnCtx) |
void |
printOut(java.util.function.Consumer<java.lang.String> logger) |
java.lang.String |
toString() |
createTickableNodes, finaliseVariables, putVariables
public final java.lang.String name
public final java.lang.String fullName
public final java.util.Map<java.lang.String,java.lang.String> properties
->
property. Non-primitives are expanded, so arrays are turned into key[index], and objects are
turned into key.child.
For example: "size": [25, 30] is added to the map as two entries: "size[0]"="25", and "size[1]"="30". "data": {"prop": ""
@Nullable public final JsonGuiIterator iterator
public final FunctionContext context
public final com.google.gson.JsonObject json
public JsonGuiElement(com.google.gson.JsonObject json, java.lang.String name, java.lang.String fullName, java.util.Map<java.lang.String,JsonGuiElement> typeLookup, FunctionContext context)
public java.util.List<JsonGuiElement> iterate(FunctionContext fnCtx)
public java.util.List<JsonGuiElement> getChildren(java.lang.String subName)
public JsonGuiElement getChildElement(java.lang.String childName, com.google.gson.JsonElement elem)
public java.lang.String toString()
toString
in class java.lang.Object
public void printOut(java.util.function.Consumer<java.lang.String> logger)