Package net.minecraft.command
Class ITimerCallback.Serializer<T,C extends ITimerCallback<T>>
- java.lang.Object
-
- net.minecraft.command.ITimerCallback.Serializer<T,C>
-
- Direct Known Subclasses:
TimedFunction.Serializer
,TimedFunctionTag.Serializer
- Enclosing interface:
- ITimerCallback<T>
public abstract static class ITimerCallback.Serializer<T,C extends ITimerCallback<T>> extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Class<?>
cls
private ResourceLocation
id
-
Constructor Summary
Constructors Constructor Description Serializer(ResourceLocation p_i51270_1_, java.lang.Class<?> p_i51270_2_)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract C
deserialize(CompoundNBT p_212846_1_)
java.lang.Class<?>
getCls()
ResourceLocation
getId()
abstract void
serialize(CompoundNBT p_212847_1_, C p_212847_2_)
-
-
-
Field Detail
-
id
private final ResourceLocation id
-
cls
private final java.lang.Class<?> cls
-
-
Constructor Detail
-
Serializer
public Serializer(ResourceLocation p_i51270_1_, java.lang.Class<?> p_i51270_2_)
-
-
Method Detail
-
getId
public ResourceLocation getId()
-
getCls
public java.lang.Class<?> getCls()
-
serialize
public abstract void serialize(CompoundNBT p_212847_1_, C p_212847_2_)
-
deserialize
public abstract C deserialize(CompoundNBT p_212846_1_)
-
-