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 String
private TimerCallbacks<T>
private com.google.common.collect.Table<String,Long,TimerQueue.Event<T>>
private static org.apache.logging.log4j.Logger
private Queue<TimerQueue.Event<T>>
private com.google.common.primitives.UnsignedLong
private static String
private static String
-
Constructor Summary
ConstructorDescriptionTimerQueue(TimerCallbacks<T> p_82247_)
TimerQueue(TimerCallbacks<T> p_82249_, Stream<com.mojang.serialization.Dynamic<Tag>> 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.apache.logging.log4j.Logger LOGGER -
CALLBACK_DATA_TAG
- See Also:
- Constant Field Values
-
TIMER_NAME_TAG
- See Also:
- Constant Field Values
-
TIMER_TRIGGER_TIME_TAG
- See Also:
- Constant Field Values
-
callbacksRegistry
-
queue
-
sequentialId
private com.google.common.primitives.UnsignedLong sequentialId -
events
-
-
Constructor Details
-
TimerQueue
public TimerQueue(TimerCallbacks<T> p_82249_, Stream<com.mojang.serialization.Dynamic<Tag>> p_82250_) -
TimerQueue
-
-
Method Details
-
createComparator
-
tick
-
schedule
-
remove
-
getEventsIds
-
loadEvent
-
storeEvent
-
store
-