Package net.minecraft.world.timer
Class Timer<T>
java.lang.Object
net.minecraft.world.timer.Timer<T>
- Mappings:
Namespace Name official edsintermediary net/minecraft/class_236named net/minecraft/world/timer/Timer
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TimerCallbackSerializer<T>private static final Stringprivate UnsignedLongprivate final Queue<Timer.Event<T>>private final Table<String,Long, Timer.Event<T>> private static final Loggerprivate static final Stringprivate static final String -
Constructor Summary
ConstructorsConstructorDescriptionTimer(TimerCallbackSerializer<T> timerCallbackSerializer) Timer(TimerCallbackSerializer<T> timerCallbackSerializer, Stream<? extends com.mojang.serialization.Dynamic<?>> nbts) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddEvent(NbtCompound nbt) private static <T> Comparator<Timer.Event<T>>voidprocessEvents(T server, long time) intprivate NbtCompoundserialize(Timer.Event<T> event) voidsetEvent(String name, long triggerTime, TimerCallback<T> callback) toNbt()
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official aLeds;a:Lorg/slf4j/Logger;intermediary field_1315Lnet/minecraft/class_236;field_1315:Lorg/slf4j/Logger;named LOGGERLnet/minecraft/world/timer/Timer;LOGGER:Lorg/slf4j/Logger;
-
CALLBACK_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector official bLeds;b:Ljava/lang/String;intermediary field_31876Lnet/minecraft/class_236;field_31876:Ljava/lang/String;named CALLBACK_KEYLnet/minecraft/world/timer/Timer;CALLBACK_KEY:Ljava/lang/String;
-
NAME_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector official cLeds;c:Ljava/lang/String;intermediary field_31877Lnet/minecraft/class_236;field_31877:Ljava/lang/String;named NAME_KEYLnet/minecraft/world/timer/Timer;NAME_KEY:Ljava/lang/String;
-
TRIGGER_TIME_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector official dLeds;d:Ljava/lang/String;intermediary field_31878Lnet/minecraft/class_236;field_31878:Ljava/lang/String;named TRIGGER_TIME_KEYLnet/minecraft/world/timer/Timer;TRIGGER_TIME_KEY:Ljava/lang/String;
-
callback
- Mappings:
Namespace Name Mixin selector official eLeds;e:Ledr;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 fLeds;f: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 gLeds;g: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 hLeds;h: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<? extends com.mojang.serialization.Dynamic<?>> nbts) - Mappings:
Namespace Name Mixin selector official <init>Leds;<init>(Ledr;Ljava/util/stream/Stream;)Vintermediary <init>Lnet/minecraft/class_236;<init>(Lnet/minecraft/class_233;Ljava/util/stream/Stream;)Vnamed <init>Lnet/minecraft/world/timer/Timer;<init>(Lnet/minecraft/world/timer/TimerCallbackSerializer;Ljava/util/stream/Stream;)V
-
Timer
- Mappings:
Namespace Name Mixin selector official <init>Leds;<init>(Ledr;)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 cLeds;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 aLeds;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 aLeds;a(Ljava/lang/String;JLedq;)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
-
remove
- Mappings:
Namespace Name Mixin selector official aLeds;a(Ljava/lang/String;)Iintermediary method_22593Lnet/minecraft/class_236;method_22593(Ljava/lang/String;)Inamed removeLnet/minecraft/world/timer/Timer;remove(Ljava/lang/String;)I
-
getEventNames
- Mappings:
Namespace Name Mixin selector official aLeds;a()Ljava/util/Set;intermediary method_22592Lnet/minecraft/class_236;method_22592()Ljava/util/Set;named getEventNamesLnet/minecraft/world/timer/Timer;getEventNames()Ljava/util/Set;
-
addEvent
- Mappings:
Namespace Name Mixin selector official aLeds;a(Lqr;)Vintermediary method_986Lnet/minecraft/class_236;method_986(Lnet/minecraft/class_2487;)Vnamed addEventLnet/minecraft/world/timer/Timer;addEvent(Lnet/minecraft/nbt/NbtCompound;)V
-
serialize
- Mappings:
Namespace Name Mixin selector official aLeds;a(Leds$a;)Lqr;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/NbtCompound;
-
toNbt
- Mappings:
Namespace Name Mixin selector official bLeds;b()Lqx;intermediary method_982Lnet/minecraft/class_236;method_982()Lnet/minecraft/class_2499;named toNbtLnet/minecraft/world/timer/Timer;toNbt()Lnet/minecraft/nbt/NbtList;
-