Package net.minecraft.command
Class TimerCallbackManager<T>
java.lang.Object
net.minecraft.command.TimerCallbackManager<T>
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final TimerCallbackSerializers<T>
private final com.google.common.collect.Table<String,
Long, TimerCallbackManager.Entry<T>> private static final org.apache.logging.log4j.Logger
private final Queue<TimerCallbackManager.Entry<T>>
private com.google.common.primitives.UnsignedLong
-
Constructor Summary
ConstructorDescriptionTimerCallbackManager
(TimerCallbackSerializers<T> p_i51188_1_) TimerCallbackManager
(TimerCallbackSerializers<T> p_i232176_1_, Stream<com.mojang.serialization.Dynamic<INBT>> p_i232176_2_) -
Method Summary
Modifier and TypeMethodDescriptionprivate static <T> Comparator<TimerCallbackManager.Entry<T>>
private void
loadEvent
(CompoundNBT p_216329_1_) int
void
schedule
(String p_227576_1_, long p_227576_2_, ITimerCallback<T> p_227576_4_) store()
private CompoundNBT
storeEvent
(TimerCallbackManager.Entry<T> p_216332_1_) void
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
callbacksRegistry
-
queue
-
sequentialId
private com.google.common.primitives.UnsignedLong sequentialId -
events
-
-
Constructor Details
-
TimerCallbackManager
public TimerCallbackManager(TimerCallbackSerializers<T> p_i232176_1_, Stream<com.mojang.serialization.Dynamic<INBT>> p_i232176_2_) -
TimerCallbackManager
-
-
Method Details
-
createComparator
-
tick
-
schedule
-
remove
-
getEventsIds
-
loadEvent
-
storeEvent
-
store
-