public abstract static class EntityProperty.Serializer<T extends EntityProperty>
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
Serializer(ResourceLocation nameIn,
java.lang.Class<T> propertyClassIn) |
Modifier and Type | Method and Description |
---|---|
abstract T |
deserialize(com.google.gson.JsonElement element,
com.google.gson.JsonDeserializationContext deserializationContext) |
ResourceLocation |
getName() |
java.lang.Class<T> |
getPropertyClass() |
abstract com.google.gson.JsonElement |
serialize(T property,
com.google.gson.JsonSerializationContext serializationContext) |
protected Serializer(ResourceLocation nameIn, java.lang.Class<T> propertyClassIn)
public ResourceLocation getName()
public java.lang.Class<T> getPropertyClass()
public abstract com.google.gson.JsonElement serialize(T property, com.google.gson.JsonSerializationContext serializationContext)
public abstract T deserialize(com.google.gson.JsonElement element, com.google.gson.JsonDeserializationContext deserializationContext)