Class Timer<T>

java.lang.Object
net.minecraft.world.timer.Timer<T>

public class Timer<T> extends Object
Mappings:
Namespace Name
named net/minecraft/world/timer/Timer
intermediary net/minecraft/class_236
official ewj
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/world/timer/Timer;LOGGER:Lorg/slf4j/Logger;
      intermediary field_1315 Lnet/minecraft/class_236;field_1315:Lorg/slf4j/Logger;
      official a Lewj;a:Lorg/slf4j/Logger;
    • CALLBACK_KEY

      private static final String CALLBACK_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named CALLBACK_KEY Lnet/minecraft/world/timer/Timer;CALLBACK_KEY:Ljava/lang/String;
      intermediary field_31876 Lnet/minecraft/class_236;field_31876:Ljava/lang/String;
      official b Lewj;b:Ljava/lang/String;
    • NAME_KEY

      private static final String NAME_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named NAME_KEY Lnet/minecraft/world/timer/Timer;NAME_KEY:Ljava/lang/String;
      intermediary field_31877 Lnet/minecraft/class_236;field_31877:Ljava/lang/String;
      official c Lewj;c:Ljava/lang/String;
    • TRIGGER_TIME_KEY

      private static final String TRIGGER_TIME_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named TRIGGER_TIME_KEY Lnet/minecraft/world/timer/Timer;TRIGGER_TIME_KEY:Ljava/lang/String;
      intermediary field_31878 Lnet/minecraft/class_236;field_31878:Ljava/lang/String;
      official d Lewj;d:Ljava/lang/String;
    • callback

      private final TimerCallbackSerializer<T> callback
      Mappings:
      Namespace Name Mixin selector
      named callback Lnet/minecraft/world/timer/Timer;callback:Lnet/minecraft/world/timer/TimerCallbackSerializer;
      intermediary field_1314 Lnet/minecraft/class_236;field_1314:Lnet/minecraft/class_233;
      official e Lewj;e:Lewi;
    • events

      private final Queue<Timer.Event<T>> events
      Mappings:
      Namespace Name Mixin selector
      named events Lnet/minecraft/world/timer/Timer;events:Ljava/util/Queue;
      intermediary field_1313 Lnet/minecraft/class_236;field_1313:Ljava/util/Queue;
      official f Lewj;f:Ljava/util/Queue;
    • eventCounter

      private UnsignedLong eventCounter
      Mappings:
      Namespace Name Mixin selector
      named eventCounter Lnet/minecraft/world/timer/Timer;eventCounter:Lcom/google/common/primitives/UnsignedLong;
      intermediary field_1311 Lnet/minecraft/class_236;field_1311:Lcom/google/common/primitives/UnsignedLong;
      official g Lewj;g:Lcom/google/common/primitives/UnsignedLong;
    • eventsByName

      private final Table<String,Long,Timer.Event<T>> eventsByName
      Mappings:
      Namespace Name Mixin selector
      named eventsByName Lnet/minecraft/world/timer/Timer;eventsByName:Lcom/google/common/collect/Table;
      intermediary field_1312 Lnet/minecraft/class_236;field_1312:Lcom/google/common/collect/Table;
      official h Lewj;h: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
      named <init> Lnet/minecraft/world/timer/Timer;<init>(Lnet/minecraft/world/timer/TimerCallbackSerializer;Ljava/util/stream/Stream;)V
      intermediary <init> Lnet/minecraft/class_236;<init>(Lnet/minecraft/class_233;Ljava/util/stream/Stream;)V
      official <init> Lewj;<init>(Lewi;Ljava/util/stream/Stream;)V
    • Timer

      public Timer(TimerCallbackSerializer<T> timerCallbackSerializer)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/timer/Timer;<init>(Lnet/minecraft/world/timer/TimerCallbackSerializer;)V
      intermediary <init> Lnet/minecraft/class_236;<init>(Lnet/minecraft/class_233;)V
      official <init> Lewj;<init>(Lewi;)V
  • Method Details

    • createEventComparator

      private static <T> Comparator<Timer.Event<T>> createEventComparator()
      Mappings:
      Namespace Name Mixin selector
      named createEventComparator Lnet/minecraft/world/timer/Timer;createEventComparator()Ljava/util/Comparator;
      intermediary method_987 Lnet/minecraft/class_236;method_987()Ljava/util/Comparator;
      official c Lewj;c()Ljava/util/Comparator;
    • processEvents

      public void processEvents(T server, long time)
      Mappings:
      Namespace Name Mixin selector
      named processEvents Lnet/minecraft/world/timer/Timer;processEvents(Ljava/lang/Object;J)V
      intermediary method_988 Lnet/minecraft/class_236;method_988(Ljava/lang/Object;J)V
      official a Lewj;a(Ljava/lang/Object;J)V
    • setEvent

      public void setEvent(String name, long triggerTime, TimerCallback<T> callback)
      Mappings:
      Namespace Name Mixin selector
      named setEvent Lnet/minecraft/world/timer/Timer;setEvent(Ljava/lang/String;JLnet/minecraft/world/timer/TimerCallback;)V
      intermediary method_985 Lnet/minecraft/class_236;method_985(Ljava/lang/String;JLnet/minecraft/class_234;)V
      official a Lewj;a(Ljava/lang/String;JLewh;)V
    • remove

      public int remove(String name)
      Mappings:
      Namespace Name Mixin selector
      named remove Lnet/minecraft/world/timer/Timer;remove(Ljava/lang/String;)I
      intermediary method_22593 Lnet/minecraft/class_236;method_22593(Ljava/lang/String;)I
      official a Lewj;a(Ljava/lang/String;)I
    • getEventNames

      public Set<String> getEventNames()
      Mappings:
      Namespace Name Mixin selector
      named getEventNames Lnet/minecraft/world/timer/Timer;getEventNames()Ljava/util/Set;
      intermediary method_22592 Lnet/minecraft/class_236;method_22592()Ljava/util/Set;
      official a Lewj;a()Ljava/util/Set;
    • addEvent

      private void addEvent(NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      named addEvent Lnet/minecraft/world/timer/Timer;addEvent(Lnet/minecraft/nbt/NbtCompound;)V
      intermediary method_986 Lnet/minecraft/class_236;method_986(Lnet/minecraft/class_2487;)V
      official a Lewj;a(Lua;)V
    • serialize

      private NbtCompound serialize(Timer.Event<T> event)
      Mappings:
      Namespace Name Mixin selector
      named serialize Lnet/minecraft/world/timer/Timer;serialize(Lnet/minecraft/world/timer/Timer$Event;)Lnet/minecraft/nbt/NbtCompound;
      intermediary method_980 Lnet/minecraft/class_236;method_980(Lnet/minecraft/class_236$class_237;)Lnet/minecraft/class_2487;
      official a Lewj;a(Lewj$a;)Lua;
    • toNbt

      public NbtList toNbt()
      Mappings:
      Namespace Name Mixin selector
      named toNbt Lnet/minecraft/world/timer/Timer;toNbt()Lnet/minecraft/nbt/NbtList;
      intermediary method_982 Lnet/minecraft/class_236;method_982()Lnet/minecraft/class_2499;
      official b Lewj;b()Lug;