public class JsonContext
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,Ingredient> |
constants |
private java.lang.String |
modId |
Constructor and Description |
---|
JsonContext(java.lang.String modId) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
appendModId(java.lang.String data) |
Ingredient |
getConstant(java.lang.String name) |
java.lang.String |
getModId() |
(package private) void |
loadConstants(com.google.gson.JsonObject... jsons) |
private java.lang.String modId
private java.util.Map<java.lang.String,Ingredient> constants
public java.lang.String getModId()
public java.lang.String appendModId(java.lang.String data)
@Nullable public Ingredient getConstant(java.lang.String name)
void loadConstants(com.google.gson.JsonObject... jsons)