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
official efg
intermediary net/minecraft/class_6755
named net/minecraft/world/tick/ChunkTickScheduler
  • Field Details

    • tickQueue

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

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

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

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

    • ChunkTickScheduler

      public ChunkTickScheduler()
    • ChunkTickScheduler

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

    • setTickConsumer

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

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

      @Nullable public @Nullable OrderedTick<T> pollNextTick()
      Mappings:
      Namespace Name Mixin selector
      official c Lefg;c()Lefl;
      intermediary method_39371 Lnet/minecraft/class_6755;method_39371()Lnet/minecraft/class_6760;
      named pollNextTick Lnet/minecraft/world/tick/ChunkTickScheduler;pollNextTick()Lnet/minecraft/world/tick/OrderedTick;
    • scheduleTick

      public void scheduleTick(OrderedTick<T> orderedTick)
      Specified by:
      scheduleTick in interface TickScheduler<T>
      Mappings:
      Namespace Name Mixin selector
      official a Lefn;a(Lefl;)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
    • queueTick

      private void queueTick(OrderedTick<T> orderedTick)
      Mappings:
      Namespace Name Mixin selector
      official b Lefg;b(Lefl;)V
      intermediary method_39370 Lnet/minecraft/class_6755;method_39370(Lnet/minecraft/class_6760;)V
      named queueTick Lnet/minecraft/world/tick/ChunkTickScheduler;queueTick(Lnet/minecraft/world/tick/OrderedTick;)V
    • isQueued

      public boolean isQueued(BlockPos pos, T type)
      Specified by:
      isQueued in interface TickScheduler<T>
      Mappings:
      Namespace Name Mixin selector
      official a Lefn;a(Lgu;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
    • removeTicksIf

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

      public Stream<OrderedTick<T>> getQueueAsStream()
      Mappings:
      Namespace Name Mixin selector
      official d Lefg;d()Ljava/util/stream/Stream;
      intermediary method_39372 Lnet/minecraft/class_6755;method_39372()Ljava/util/stream/Stream;
      named getQueueAsStream Lnet/minecraft/world/tick/ChunkTickScheduler;getQueueAsStream()Ljava/util/stream/Stream;
    • getTickCount

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

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

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

      public static <T> ChunkTickScheduler<T> create(NbtList tickQueue, Function<String,Optional<T>> nameToTypeFunction, ChunkPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lefg;a(Lqx;Ljava/util/function/Function;Lclr;)Lefg;
      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;
      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;