Package net.minecraft.command
Class TimerCallbackSerializers<C>
- java.lang.Object
-
- net.minecraft.command.TimerCallbackSerializers<C>
-
public class TimerCallbackSerializers<C> extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.Class<?>,ITimerCallback.Serializer<C,?>>
classToSerializer
private java.util.Map<ResourceLocation,ITimerCallback.Serializer<C,?>>
idToSerializer
private static org.apache.logging.log4j.Logger
LOGGER
static TimerCallbackSerializers<MinecraftServer>
SERVER_CALLBACKS
-
Constructor Summary
Constructors Constructor Description TimerCallbackSerializers()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ITimerCallback<C>
deserialize(CompoundNBT p_216341_1_)
private <T extends ITimerCallback<C>>
ITimerCallback.Serializer<C,T>getSerializer(java.lang.Class<?> p_216338_1_)
TimerCallbackSerializers<C>
register(ITimerCallback.Serializer<C,?> p_216340_1_)
<T extends ITimerCallback<C>>
CompoundNBTserialize(T p_216339_1_)
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
SERVER_CALLBACKS
public static final TimerCallbackSerializers<MinecraftServer> SERVER_CALLBACKS
-
idToSerializer
private final java.util.Map<ResourceLocation,ITimerCallback.Serializer<C,?>> idToSerializer
-
classToSerializer
private final java.util.Map<java.lang.Class<?>,ITimerCallback.Serializer<C,?>> classToSerializer
-
-
Method Detail
-
register
public TimerCallbackSerializers<C> register(ITimerCallback.Serializer<C,?> p_216340_1_)
-
getSerializer
private <T extends ITimerCallback<C>> ITimerCallback.Serializer<C,T> getSerializer(java.lang.Class<?> p_216338_1_)
-
serialize
public <T extends ITimerCallback<C>> CompoundNBT serialize(T p_216339_1_)
-
deserialize
@Nullable public ITimerCallback<C> deserialize(CompoundNBT p_216341_1_)
-
-