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
official ebm
intermediary net/minecraft/class_4296
named net/minecraft/world/tick/SimpleTickScheduler
  • Field Details

    • scheduledTicks

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

      private final Set<Tick<?>> scheduledTicksSet
      Mappings:
      Namespace Name Mixin selector
      official b Lebm;b:Ljava/util/Set;
      intermediary field_35541 Lnet/minecraft/class_4296;field_35541:Ljava/util/Set;
      named scheduledTicksSet Lnet/minecraft/world/tick/SimpleTickScheduler;scheduledTicksSet: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
      official a Lebq;a(Lebo;)V
      intermediary method_39363 Lnet/minecraft/class_6762;method_39363(Lnet/minecraft/class_6760;)V
      named scheduleTick Lnet/minecraft/world/tick/TickScheduler;scheduleTick(Lnet/minecraft/world/tick/OrderedTick;)V
    • scheduleTick

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

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

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

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

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

      public static <T> SimpleTickScheduler<T> tick(NbtList tickList, Function<String,Optional<T>> typeToNameFunction, ChunkPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lebm;a(Lqv;Ljava/util/function/Function;Lcjd;)Lebm;
      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;
      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;