net.minecraft.world.level.timers

public class TimerQueue<T>

ecw
net.minecraft.world.level.timers.TimerQueue
net.minecraft.class_236
net.minecraft.world.timer.Timer
net.minecraft.src.C_3037_
net.minecraft.world.level.timers.CustomFunctionCallbackTimerQueue

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
a
LOGGER
field_1315
LOGGER
f_82240_
private static final String
b
CALLBACK_DATA_TAG
field_31876
CALLBACK_KEY
f_165876_
private static final String
c
TIMER_NAME_TAG
field_31877
NAME_KEY
f_165877_
private static final String
d
TIMER_TRIGGER_TIME_TAG
field_31878
TRIGGER_TIME_KEY
f_165878_
private final TimerCallbacks<T>
e
callbacksRegistry
field_1314
callback
f_82241_
private final Queue<TimerQueue$Event<T>>
f
queue
field_1313
events
f_82242_
private com.google.common.primitives.UnsignedLong
g
sequentialId
field_1311
eventCounter
f_82243_
private final com.google.common.collect.Table<String, Long, TimerQueue$Event<T>>
h
events
field_1312
eventsByName
f_82244_

Constructor summary

ModifierConstructor
public (TimerCallbacks<T> timerCallbackSerializer, Stream<? extends com.mojang.serialization.Dynamic<?>> nbts)
public (TimerCallbacks<T> timerCallbackSerializer)

Method summary

Modifier and TypeMethod
private static <T> Comparator<TimerQueue$Event<T>>
c()
createComparator()
method_987()
createEventComparator()
m_82270_()
public void
a(T arg0, long arg1)
tick(T arg0, long arg1)
method_988(T arg0, long arg1)
processEvents(T server, long time)
m_82256_(T p_82258_, long arg1)
public void
a(String arg0, long arg1, ecu<T> arg2)
schedule(String arg0, long arg1, TimerCallback<T> arg2)
method_985(String arg0, long arg1, class_234<T> arg2)
setEvent(String name, long triggerTime, TimerCallback<T> callback)
m_82261_(String p_82263_, long p_82264_, C_3034_<T> arg2)
public int
a(String arg0)
remove(String arg0)
method_22593(String arg0)
remove(String name)
m_82259_(String arg0)
public Set<String>
a()
getEventsIds()
method_22592()
getEventNames()
m_82251_()
private void
a(re arg0)
loadEvent(CompoundTag arg0)
method_986(class_2487 arg0)
addEvent(NbtCompound nbt)
m_82265_(C_4917_ arg0)
private CompoundTag
a(ecw$a<T> arg0)
storeEvent(TimerQueue$Event<T> arg0)
method_980(class_236$class_237<T> arg0)
serialize(Timer$Event<T> event)
m_82254_(C_3037_$C_3039_<T> arg0)
public ListTag
b()
store()
method_982()
toNbt()
m_82267_()