Package net.minecraft.world.timer
Class Timer<T>
java.lang.Object
net.minecraft.world.timer.Timer<T>
public class Timer<T> extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTimer.Event<T> -
Field Summary
Fields Modifier and Type Field Description private TimerCallbackSerializer<T>callbackprivate UnsignedLongeventCounterprivate Queue<Timer.Event<T>>eventsprivate Table<String,Long,Timer.Event<T>>eventsByNameprivate static LoggerLOGGER -
Constructor Summary
Constructors Constructor Description Timer(TimerCallbackSerializer<T> timerCallbackSerializer)Timer(TimerCallbackSerializer<T> timerCallbackSerializer, Stream<com.mojang.serialization.Dynamic<Tag>> stream) -
Method Summary
Modifier and Type Method Description private voidaddEvent(CompoundTag tag)private static <T> Comparator<Timer.Event<T>>createEventComparator()Set<String>method_22592()intmethod_22593(String string)voidprocessEvents(T server, long time)private CompoundTagserialize(Timer.Event<T> event)voidsetEvent(String name, long triggerTime, TimerCallback<T> callback)ListTagtoTag()