Package net.minecraft.world.level.timers
Class TimerCallbacks<C>
java.lang.Object
net.minecraft.world.level.timers.TimerCallbacks<C>
-
Field Summary
Modifier and TypeFieldDescriptionprivate Map<Class<?>,TimerCallback.Serializer<C,?>>
private Map<ResourceLocation,TimerCallback.Serializer<C,?>>
private static org.apache.logging.log4j.Logger
static TimerCallbacks<MinecraftServer>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize(CompoundTag p_82239_)
private <T extends TimerCallback<C>>
TimerCallback.Serializer<C,T>getSerializer(Class<?> p_82237_)
register(TimerCallback.Serializer<C,?> p_82233_)
<T extends TimerCallback<C>>
CompoundTagserialize(T p_82235_)
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
SERVER_CALLBACKS
-
idToSerializer
-
classToSerializer
-
-
Constructor Details
-
TimerCallbacks
public TimerCallbacks()
-
-
Method Details
-
register
-
getSerializer
private <T extends TimerCallback<C>> TimerCallback.Serializer<C,T> getSerializer(Class<?> p_82237_) -
serialize
-
deserialize
-