Class SimpleTickScheduler<T>

java.lang.Object
net.minecraft.world.tick.SimpleTickScheduler<T>
All Implemented Interfaces:
BasicTickScheduler<T>, SerializableTickScheduler<T>, TickScheduler<T>

public class SimpleTickScheduler<T> extends Object implements SerializableTickScheduler<T>, BasicTickScheduler<T>
Mappings:
Namespace Name
named net/minecraft/world/tick/SimpleTickScheduler
intermediary net/minecraft/class_4296
official exh
  • Field Details

    • scheduledTicks

      private final List<Tick<T>> scheduledTicks
      Mappings:
      Namespace Name Mixin selector
      named scheduledTicks Lnet/minecraft/world/tick/SimpleTickScheduler;scheduledTicks:Ljava/util/List;
      intermediary field_19275 Lnet/minecraft/class_4296;field_19275:Ljava/util/List;
      official a Lexh;a:Ljava/util/List;
    • scheduledTicksSet

      private final Set<Tick<?>> scheduledTicksSet
      Mappings:
      Namespace Name Mixin selector
      named scheduledTicksSet Lnet/minecraft/world/tick/SimpleTickScheduler;scheduledTicksSet:Ljava/util/Set;
      intermediary field_35541 Lnet/minecraft/class_4296;field_35541:Ljava/util/Set;
      official b Lexh;b:Ljava/util/Set;
  • Constructor Details

    • SimpleTickScheduler

      public SimpleTickScheduler()
  • Method Details

    • scheduleTick

      public void scheduleTick(OrderedTick<T> orderedTick)
      Specified by:
      scheduleTick in interface TickScheduler<T>
      Mappings:
      Namespace Name Mixin selector
      named scheduleTick Lnet/minecraft/world/tick/TickScheduler;scheduleTick(Lnet/minecraft/world/tick/OrderedTick;)V
      intermediary method_39363 Lnet/minecraft/class_6762;method_39363(Lnet/minecraft/class_6760;)V
      official a Lexl;a(Lexj;)V
    • scheduleTick

      private void scheduleTick(Tick<T> tick)
      Mappings:
      Namespace Name Mixin selector
      named scheduleTick Lnet/minecraft/world/tick/SimpleTickScheduler;scheduleTick(Lnet/minecraft/world/tick/Tick;)V
      intermediary method_39397 Lnet/minecraft/class_4296;method_39397(Lnet/minecraft/class_6759;)V
      official a Lexh;a(Lexi;)V
    • isQueued

      public boolean isQueued(BlockPos pos, T type)
      Specified by:
      isQueued in interface TickScheduler<T>
      Mappings:
      Namespace Name Mixin selector
      named isQueued Lnet/minecraft/world/tick/TickScheduler;isQueued(Lnet/minecraft/util/math/BlockPos;Ljava/lang/Object;)Z
      intermediary method_8674 Lnet/minecraft/class_6762;method_8674(Lnet/minecraft/class_2338;Ljava/lang/Object;)Z
      official a Lexl;a(Liz;Ljava/lang/Object;)Z
    • getTickCount

      public int getTickCount()
      Specified by:
      getTickCount in interface TickScheduler<T>
      Mappings:
      Namespace Name Mixin selector
      named getTickCount Lnet/minecraft/world/tick/TickScheduler;getTickCount()I
      intermediary method_20825 Lnet/minecraft/class_6762;method_20825()I
      official a Lexl;a()I
    • toNbt

      public NbtElement toNbt(long time, Function<T,String> typeToNameFunction)
      Specified by:
      toNbt in interface SerializableTickScheduler<T>
      Mappings:
      Namespace Name Mixin selector
      named toNbt Lnet/minecraft/world/tick/SerializableTickScheduler;toNbt(JLjava/util/function/Function;)Lnet/minecraft/nbt/NbtElement;
      intermediary method_20463 Lnet/minecraft/class_6761;method_20463(JLjava/util/function/Function;)Lnet/minecraft/class_2520;
      official b Lexk;b(JLjava/util/function/Function;)Lvp;
    • getTicks

      public List<Tick<T>> getTicks()
      Mappings:
      Namespace Name Mixin selector
      named getTicks Lnet/minecraft/world/tick/SimpleTickScheduler;getTicks()Ljava/util/List;
      intermediary method_39399 Lnet/minecraft/class_4296;method_39399()Ljava/util/List;
      official b Lexh;b()Ljava/util/List;
    • tick

      public static <T> SimpleTickScheduler<T> tick(NbtList tickList, Function<String,Optional<T>> typeToNameFunction, ChunkPos pos)
      Mappings:
      Namespace Name Mixin selector
      named tick Lnet/minecraft/world/tick/SimpleTickScheduler;tick(Lnet/minecraft/nbt/NbtList;Ljava/util/function/Function;Lnet/minecraft/util/math/ChunkPos;)Lnet/minecraft/world/tick/SimpleTickScheduler;
      intermediary method_39398 Lnet/minecraft/class_4296;method_39398(Lnet/minecraft/class_2499;Ljava/util/function/Function;Lnet/minecraft/class_1923;)Lnet/minecraft/class_4296;
      official a Lexh;a(Luy;Ljava/util/function/Function;Ldbg;)Lexh;