net.minecraft.world.level.timers

public class TimerQueue<T>

fbl
net.minecraft.world.level.timers.TimerQueue
net.minecraft.class_236
net.minecraft.world.timer.Timer
net.minecraft.world.level.timers.CustomFunctionCallbackTimerQueue

Field summary

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

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()
public void
a(T arg0, long arg1)
tick(T arg0, long arg1)
method_988(T arg0, long arg1)
processEvents(T server, long time)
public void
a(String arg0, long arg1, fbj<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)
public int
a(String arg0)
remove(String arg0)
method_22593(String arg0)
remove(String name)
public Set<String>
a()
getEventsIds()
method_22592()
getEventNames()
private void
a(ux arg0)
loadEvent(CompoundTag arg0)
method_986(class_2487 arg0)
addEvent(NbtCompound nbt)
private CompoundTag
a(fbl$a<T> arg0)
storeEvent(TimerQueue$Event<T> arg0)
method_980(class_236$class_237<T> arg0)
serialize(Timer$Event<T> event)
public ListTag
b()
store()
method_982()
toNbt()