Package net.minecraft.world.timer
Class Timer<T>
java.lang.Object
net.minecraft.world.timer.Timer<T>
public class Timer<T> extends Object
- Mappings:
Namespace Name official dimintermediary net/minecraft/class_236named net/minecraft/world/timer/Timer
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTimer.Event<T> -
Field Summary
Fields Modifier and Type Field Description private TimerCallbackSerializer<T>callbackprivate UnsignedLongeventCounterprivate Queue<Timer.Event<T>>eventsprivate Table<String,Long,Timer.Event<T>>eventsByNameprivate static LoggerLOGGER -
Constructor Summary
Constructors Constructor Description Timer(TimerCallbackSerializer<T> timerCallbackSerializer)Timer(TimerCallbackSerializer<T> timerCallbackSerializer, Stream<com.mojang.serialization.Dynamic<Tag>> stream) -
Method Summary
Modifier and Type Method Description private voidaddEvent(CompoundTag tag)private static <T> Comparator<Timer.Event<T>>createEventComparator()Set<String>method_22592()intmethod_22593(String string)voidprocessEvents(T server, long time)private CompoundTagserialize(Timer.Event<T> event)voidsetEvent(String name, long triggerTime, TimerCallback<T> callback)ListTagtoTag()
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official aLdim;a:Lorg/apache/logging/log4j/Logger;intermediary field_1315Lnet/minecraft/class_236;field_1315:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/world/timer/Timer;LOGGER:Lorg/apache/logging/log4j/Logger;
-
callback
- Mappings:
Namespace Name Mixin selector official bLdim;b:Ldil;intermediary field_1314Lnet/minecraft/class_236;field_1314:Lnet/minecraft/class_233;named callbackLnet/minecraft/world/timer/Timer;callback:Lnet/minecraft/world/timer/TimerCallbackSerializer;
-
events
- Mappings:
Namespace Name Mixin selector official cLdim;c:Ljava/util/Queue;intermediary field_1313Lnet/minecraft/class_236;field_1313:Ljava/util/Queue;named eventsLnet/minecraft/world/timer/Timer;events:Ljava/util/Queue;
-
eventCounter
- Mappings:
Namespace Name Mixin selector official dLdim;d:Lcom/google/common/primitives/UnsignedLong;intermediary field_1311Lnet/minecraft/class_236;field_1311:Lcom/google/common/primitives/UnsignedLong;named eventCounterLnet/minecraft/world/timer/Timer;eventCounter:Lcom/google/common/primitives/UnsignedLong;
-
eventsByName
- Mappings:
Namespace Name Mixin selector official eLdim;e:Lcom/google/common/collect/Table;intermediary field_1312Lnet/minecraft/class_236;field_1312:Lcom/google/common/collect/Table;named eventsByNameLnet/minecraft/world/timer/Timer;eventsByName:Lcom/google/common/collect/Table;
-
-
Constructor Details
-
Timer
public Timer(TimerCallbackSerializer<T> timerCallbackSerializer, Stream<com.mojang.serialization.Dynamic<Tag>> stream) -
Timer
- Mappings:
Namespace Name Mixin selector official <init>Ldim;<init>(Ldil;)Vintermediary <init>Lnet/minecraft/class_236;<init>(Lnet/minecraft/class_233;)Vnamed <init>Lnet/minecraft/world/timer/Timer;<init>(Lnet/minecraft/world/timer/TimerCallbackSerializer;)V
-
-
Method Details
-
createEventComparator
- Mappings:
Namespace Name Mixin selector official cLdim;c()Ljava/util/Comparator;intermediary method_987Lnet/minecraft/class_236;method_987()Ljava/util/Comparator;named createEventComparatorLnet/minecraft/world/timer/Timer;createEventComparator()Ljava/util/Comparator;
-
processEvents
- Mappings:
Namespace Name Mixin selector official aLdim;a(Ljava/lang/Object;J)Vintermediary method_988Lnet/minecraft/class_236;method_988(Ljava/lang/Object;J)Vnamed processEventsLnet/minecraft/world/timer/Timer;processEvents(Ljava/lang/Object;J)V
-
setEvent
- Mappings:
Namespace Name Mixin selector official aLdim;a(Ljava/lang/String;JLdik;)Vintermediary method_985Lnet/minecraft/class_236;method_985(Ljava/lang/String;JLnet/minecraft/class_234;)Vnamed setEventLnet/minecraft/world/timer/Timer;setEvent(Ljava/lang/String;JLnet/minecraft/world/timer/TimerCallback;)V
-
method_22593
- Mappings:
Namespace Name Mixin selector official aLdim;a(Ljava/lang/String;)Iintermediary method_22593Lnet/minecraft/class_236;method_22593(Ljava/lang/String;)Inamed method_22593Lnet/minecraft/world/timer/Timer;method_22593(Ljava/lang/String;)I
-
method_22592
- Mappings:
Namespace Name Mixin selector official aLdim;a()Ljava/util/Set;intermediary method_22592Lnet/minecraft/class_236;method_22592()Ljava/util/Set;named method_22592Lnet/minecraft/world/timer/Timer;method_22592()Ljava/util/Set;
-
addEvent
- Mappings:
Namespace Name Mixin selector official aLdim;a(Lmq;)Vintermediary method_986Lnet/minecraft/class_236;method_986(Lnet/minecraft/class_2487;)Vnamed addEventLnet/minecraft/world/timer/Timer;addEvent(Lnet/minecraft/nbt/CompoundTag;)V
-
serialize
- Mappings:
Namespace Name Mixin selector official aLdim;a(Ldim$a;)Lmq;intermediary method_980Lnet/minecraft/class_236;method_980(Lnet/minecraft/class_236$class_237;)Lnet/minecraft/class_2487;named serializeLnet/minecraft/world/timer/Timer;serialize(Lnet/minecraft/world/timer/Timer$Event;)Lnet/minecraft/nbt/CompoundTag;
-
toTag
- Mappings:
Namespace Name Mixin selector official bLdim;b()Lmw;intermediary method_982Lnet/minecraft/class_236;method_982()Lnet/minecraft/class_2499;named toTagLnet/minecraft/world/timer/Timer;toTag()Lnet/minecraft/nbt/ListTag;
-