Package net.minecraft.world.level.timers
Class TimerQueue<T>
java.lang.Object
net.minecraft.world.level.timers.TimerQueue<T>
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final String
private final TimerCallbacks
<T> private final com.google.common.collect.Table
<String, Long, TimerQueue.Event<T>> private static final org.slf4j.Logger
private final Queue
<TimerQueue.Event<T>> private com.google.common.primitives.UnsignedLong
private static final String
private static final String
-
Constructor Summary
ConstructorDescriptionTimerQueue
(TimerCallbacks<T> p_82247_) TimerQueue
(TimerCallbacks<T> p_82249_, Stream<? extends com.mojang.serialization.Dynamic<?>> p_82250_) -
Method Summary
Modifier and TypeMethodDescriptionprivate static <T> Comparator
<TimerQueue.Event<T>> private void
loadEvent
(CompoundTag p_82266_) int
void
schedule
(String p_82262_, long p_82263_, TimerCallback<T> p_82264_) store()
private CompoundTag
storeEvent
(TimerQueue.Event<T> p_82255_) void
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
CALLBACK_DATA_TAG
- See Also:
-
TIMER_NAME_TAG
- See Also:
-
TIMER_TRIGGER_TIME_TAG
- See Also:
-
callbacksRegistry
-
queue
-
sequentialId
private com.google.common.primitives.UnsignedLong sequentialId -
events
-
-
Constructor Details
-
TimerQueue
public TimerQueue(TimerCallbacks<T> p_82249_, Stream<? extends com.mojang.serialization.Dynamic<?>> p_82250_) -
TimerQueue
-
-
Method Details
-
createComparator
-
tick
-
schedule
-
remove
-
getEventsIds
-
loadEvent
-
storeEvent
-
store
-