Class Timer<T>

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

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

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official a Ldim;a:Lorg/apache/logging/log4j/Logger;
      intermediary field_1315 Lnet/minecraft/class_236;field_1315:Lorg/apache/logging/log4j/Logger;
      named LOGGER Lnet/minecraft/world/timer/Timer;LOGGER:Lorg/apache/logging/log4j/Logger;
    • callback

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

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

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

      private final Table<String,​Long,​Timer.Event<T>> eventsByName
      Mappings:
      Namespace Name Mixin selector
      official e Ldim;e:Lcom/google/common/collect/Table;
      intermediary field_1312 Lnet/minecraft/class_236;field_1312:Lcom/google/common/collect/Table;
      named eventsByName Lnet/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

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

    • createEventComparator

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

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

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

      public int method_22593​(String string)
      Mappings:
      Namespace Name Mixin selector
      official a Ldim;a(Ljava/lang/String;)I
      intermediary method_22593 Lnet/minecraft/class_236;method_22593(Ljava/lang/String;)I
      named method_22593 Lnet/minecraft/world/timer/Timer;method_22593(Ljava/lang/String;)I
    • method_22592

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

      private void addEvent​(CompoundTag tag)
      Mappings:
      Namespace Name Mixin selector
      official a Ldim;a(Lmq;)V
      intermediary method_986 Lnet/minecraft/class_236;method_986(Lnet/minecraft/class_2487;)V
      named addEvent Lnet/minecraft/world/timer/Timer;addEvent(Lnet/minecraft/nbt/CompoundTag;)V
    • serialize

      private CompoundTag serialize​(Timer.Event<T> event)
      Mappings:
      Namespace Name Mixin selector
      official a Ldim;a(Ldim$a;)Lmq;
      intermediary method_980 Lnet/minecraft/class_236;method_980(Lnet/minecraft/class_236$class_237;)Lnet/minecraft/class_2487;
      named serialize Lnet/minecraft/world/timer/Timer;serialize(Lnet/minecraft/world/timer/Timer$Event;)Lnet/minecraft/nbt/CompoundTag;
    • toTag

      public ListTag toTag()
      Mappings:
      Namespace Name Mixin selector
      official b Ldim;b()Lmw;
      intermediary method_982 Lnet/minecraft/class_236;method_982()Lnet/minecraft/class_2499;
      named toTag Lnet/minecraft/world/timer/Timer;toTag()Lnet/minecraft/nbt/ListTag;