Class ChunkTickScheduler<T>

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

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

    • tickQueue

      private final Queue<OrderedTick<T>> tickQueue
      Mappings:
      Namespace Name Mixin selector
      named tickQueue Lnet/minecraft/world/tick/ChunkTickScheduler;tickQueue:Ljava/util/Queue;
      intermediary field_35527 Lnet/minecraft/class_6755;field_35527:Ljava/util/Queue;
      official a Leyo;a:Ljava/util/Queue;
    • ticks

      @Nullable private @Nullable List<Tick<T>> ticks
      Mappings:
      Namespace Name Mixin selector
      named ticks Lnet/minecraft/world/tick/ChunkTickScheduler;ticks:Ljava/util/List;
      intermediary field_35528 Lnet/minecraft/class_6755;field_35528:Ljava/util/List;
      official b Leyo;b:Ljava/util/List;
    • queuedTicks

      private final Set<OrderedTick<?>> queuedTicks
      Mappings:
      Namespace Name Mixin selector
      named queuedTicks Lnet/minecraft/world/tick/ChunkTickScheduler;queuedTicks:Ljava/util/Set;
      intermediary field_35529 Lnet/minecraft/class_6755;field_35529:Ljava/util/Set;
      official c Leyo;c:Ljava/util/Set;
    • tickConsumer

      Mappings:
      Namespace Name Mixin selector
      named tickConsumer Lnet/minecraft/world/tick/ChunkTickScheduler;tickConsumer:Ljava/util/function/BiConsumer;
      intermediary field_35530 Lnet/minecraft/class_6755;field_35530:Ljava/util/function/BiConsumer;
      official d Leyo;d:Ljava/util/function/BiConsumer;
  • Constructor Details

    • ChunkTickScheduler

      public ChunkTickScheduler()
    • ChunkTickScheduler

      public ChunkTickScheduler(List<Tick<T>> ticks)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/tick/ChunkTickScheduler;<init>(Ljava/util/List;)V
      intermediary <init> Lnet/minecraft/class_6755;<init>(Ljava/util/List;)V
      official <init> Leyo;<init>(Ljava/util/List;)V
  • Method Details

    • setTickConsumer

      public void setTickConsumer(@Nullable @Nullable BiConsumer<ChunkTickScheduler<T>,OrderedTick<T>> tickConsumer)
      Mappings:
      Namespace Name Mixin selector
      named setTickConsumer Lnet/minecraft/world/tick/ChunkTickScheduler;setTickConsumer(Ljava/util/function/BiConsumer;)V
      intermediary method_39366 Lnet/minecraft/class_6755;method_39366(Ljava/util/function/BiConsumer;)V
      official a Leyo;a(Ljava/util/function/BiConsumer;)V
    • peekNextTick

      @Nullable public @Nullable OrderedTick<T> peekNextTick()
      Mappings:
      Namespace Name Mixin selector
      named peekNextTick Lnet/minecraft/world/tick/ChunkTickScheduler;peekNextTick()Lnet/minecraft/world/tick/OrderedTick;
      intermediary method_39369 Lnet/minecraft/class_6755;method_39369()Lnet/minecraft/class_6760;
      official b Leyo;b()Leyt;
    • pollNextTick

      @Nullable public @Nullable OrderedTick<T> pollNextTick()
      Mappings:
      Namespace Name Mixin selector
      named pollNextTick Lnet/minecraft/world/tick/ChunkTickScheduler;pollNextTick()Lnet/minecraft/world/tick/OrderedTick;
      intermediary method_39371 Lnet/minecraft/class_6755;method_39371()Lnet/minecraft/class_6760;
      official c Leyo;c()Leyt;
    • 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 Leyv;a(Leyt;)V
    • queueTick

      private void queueTick(OrderedTick<T> orderedTick)
      Mappings:
      Namespace Name Mixin selector
      named queueTick Lnet/minecraft/world/tick/ChunkTickScheduler;queueTick(Lnet/minecraft/world/tick/OrderedTick;)V
      intermediary method_39370 Lnet/minecraft/class_6755;method_39370(Lnet/minecraft/class_6760;)V
      official b Leyo;b(Leyt;)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 Leyv;a(Ljd;Ljava/lang/Object;)Z
    • removeTicksIf

      public void removeTicksIf(Predicate<OrderedTick<T>> predicate)
      Mappings:
      Namespace Name Mixin selector
      named removeTicksIf Lnet/minecraft/world/tick/ChunkTickScheduler;removeTicksIf(Ljava/util/function/Predicate;)V
      intermediary method_39367 Lnet/minecraft/class_6755;method_39367(Ljava/util/function/Predicate;)V
      official a Leyo;a(Ljava/util/function/Predicate;)V
    • getQueueAsStream

      public Stream<OrderedTick<T>> getQueueAsStream()
      Mappings:
      Namespace Name Mixin selector
      named getQueueAsStream Lnet/minecraft/world/tick/ChunkTickScheduler;getQueueAsStream()Ljava/util/stream/Stream;
      intermediary method_39372 Lnet/minecraft/class_6755;method_39372()Ljava/util/stream/Stream;
      official d Leyo;d()Ljava/util/stream/Stream;
    • 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 Leyv;a()I
    • toNbt

      public NbtList toNbt(long long2, Function<T,String> function)
      Specified by:
      toNbt in interface SerializableTickScheduler<T>
      Mappings:
      Namespace Name Mixin selector
      named toNbt Lnet/minecraft/world/tick/ChunkTickScheduler;toNbt(JLjava/util/function/Function;)Lnet/minecraft/nbt/NbtList;
      intermediary method_39365 Lnet/minecraft/class_6755;method_39365(JLjava/util/function/Function;)Lnet/minecraft/class_2499;
      official a Leyo;a(JLjava/util/function/Function;)Luh;
    • disable

      public void disable(long time)
      Mappings:
      Namespace Name Mixin selector
      named disable Lnet/minecraft/world/tick/ChunkTickScheduler;disable(J)V
      intermediary method_39364 Lnet/minecraft/class_6755;method_39364(J)V
      official a Leyo;a(J)V
    • create

      public static <T> ChunkTickScheduler<T> create(NbtList tickQueue, Function<String,Optional<T>> nameToTypeFunction, ChunkPos pos)
      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/world/tick/ChunkTickScheduler;create(Lnet/minecraft/nbt/NbtList;Ljava/util/function/Function;Lnet/minecraft/util/math/ChunkPos;)Lnet/minecraft/world/tick/ChunkTickScheduler;
      intermediary method_39368 Lnet/minecraft/class_6755;method_39368(Lnet/minecraft/class_2499;Ljava/util/function/Function;Lnet/minecraft/class_1923;)Lnet/minecraft/class_6755;
      official a Leyo;a(Luh;Ljava/util/function/Function;Ldcd;)Leyo;