Class TimerQueue<T>
java.lang.Object
net.minecraft.world.level.saveddata.SavedData
net.minecraft.world.level.timers.TimerQueue<T>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<TimerQueue<MinecraftServer>> private final Table<String, Long, TimerQueue.Event<T>> private final Queue<TimerQueue.Event<T>> private UnsignedLongstatic final SavedDataType<TimerQueue<MinecraftServer>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static <T> com.mojang.serialization.Codec<TimerQueue<T>> codec(TimerCallbacks<T> callbacks) private static <T> Comparator<TimerQueue.Event<T>> protected TimerQueue.Packed<T> pack()intvoidschedule(String id, long time, TimerCallback<T> callback) void
-
Field Details
-
CODEC
-
TYPE
-
queue
-
sequentialId
-
events
-
-
Constructor Details
-
TimerQueue
-
TimerQueue
public TimerQueue()
-
-
Method Details
-
codec
protected static <T> com.mojang.serialization.Codec<TimerQueue<T>> codec(TimerCallbacks<T> callbacks) -
createComparator
-
tick
-
schedule
-
remove
-
getEventsIds
-
pack
-