public abstract static class TimerCallback.Serializer<T,C extends TimerCallback<T>> extends Object
Modifier and Type | Field and Description |
---|---|
private Class<?> |
callbackClass |
private Identifier |
id |
Constructor and Description |
---|
Serializer(Identifier identifier,
Class<?> class2) |
Modifier and Type | Method and Description |
---|---|
abstract C |
deserialize(CompoundTag tag) |
Class<?> |
getCallbackClass() |
Identifier |
getId() |
abstract void |
serialize(CompoundTag tag,
C callback) |
private final Identifier id
private final Class<?> callbackClass
public Serializer(Identifier identifier, Class<?> class2)
public Identifier getId()
public Class<?> getCallbackClass()
public abstract void serialize(CompoundTag tag, C callback)
public abstract C deserialize(CompoundTag tag)