Package net.minecraft.command
Class TimerCallbackSerializers<C>
java.lang.Object
net.minecraft.command.TimerCallbackSerializers<C>
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Map<Class<?>,
ITimerCallback.Serializer<C, ?>> private final Map<ResourceLocation,
ITimerCallback.Serializer<C, ?>> private static final org.apache.logging.log4j.Logger
static final TimerCallbackSerializers<MinecraftServer>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(CompoundNBT p_216341_1_) private <T extends ITimerCallback<C>>
ITimerCallback.Serializer<C,T> getSerializer
(Class<?> p_216338_1_) register
(ITimerCallback.Serializer<C, ?> p_216340_1_) <T extends ITimerCallback<C>>
CompoundNBTserialize
(T p_216339_1_)
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
SERVER_CALLBACKS
-
idToSerializer
-
classToSerializer
-
-
Constructor Details
-
TimerCallbackSerializers
public TimerCallbackSerializers()
-
-
Method Details
-
register
-
getSerializer
private <T extends ITimerCallback<C>> ITimerCallback.Serializer<C,T> getSerializer(Class<?> p_216338_1_) -
serialize
-
deserialize
-