Class WorldTickScheduler<T>

java.lang.Object
net.minecraft.world.tick.WorldTickScheduler<T>
All Implemented Interfaces:
QueryableTickScheduler<T>, TickScheduler<T>

public class WorldTickScheduler<T> extends Object implements QueryableTickScheduler<T>
Mappings:
Namespace Name
official dpt
intermediary net/minecraft/class_6757
named net/minecraft/world/tick/WorldTickScheduler
  • Field Details

    • COMPARATOR

      private static final Comparator<ChunkTickScheduler<?>> COMPARATOR
      Mappings:
      Namespace Name Mixin selector
      official a Ldpt;a:Ljava/util/Comparator;
      intermediary field_35531 Lnet/minecraft/class_6757;field_35531:Ljava/util/Comparator;
      named COMPARATOR Lnet/minecraft/world/tick/WorldTickScheduler;COMPARATOR:Ljava/util/Comparator;
    • tickingFutureReadyPredicate

      private final LongPredicate tickingFutureReadyPredicate
      Mappings:
      Namespace Name Mixin selector
      official b Ldpt;b:Ljava/util/function/LongPredicate;
      intermediary field_35532 Lnet/minecraft/class_6757;field_35532:Ljava/util/function/LongPredicate;
      named tickingFutureReadyPredicate Lnet/minecraft/world/tick/WorldTickScheduler;tickingFutureReadyPredicate:Ljava/util/function/LongPredicate;
    • profilerGetter

      private final Supplier<Profiler> profilerGetter
      Mappings:
      Namespace Name Mixin selector
      official c Ldpt;c:Ljava/util/function/Supplier;
      intermediary field_35533 Lnet/minecraft/class_6757;field_35533:Ljava/util/function/Supplier;
      named profilerGetter Lnet/minecraft/world/tick/WorldTickScheduler;profilerGetter:Ljava/util/function/Supplier;
    • chunkTickSchedulers

      private final Long2ObjectMap<ChunkTickScheduler<T>> chunkTickSchedulers
      Mappings:
      Namespace Name Mixin selector
      official d Ldpt;d:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;
      intermediary field_35534 Lnet/minecraft/class_6757;field_35534:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;
      named chunkTickSchedulers Lnet/minecraft/world/tick/WorldTickScheduler;chunkTickSchedulers:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;
    • nextTriggerTickByChunkPos

      private final Long2LongMap nextTriggerTickByChunkPos
      Mappings:
      Namespace Name Mixin selector
      official e Ldpt;e:Lit/unimi/dsi/fastutil/longs/Long2LongMap;
      intermediary field_35535 Lnet/minecraft/class_6757;field_35535:Lit/unimi/dsi/fastutil/longs/Long2LongMap;
      named nextTriggerTickByChunkPos Lnet/minecraft/world/tick/WorldTickScheduler;nextTriggerTickByChunkPos:Lit/unimi/dsi/fastutil/longs/Long2LongMap;
    • tickableChunkTickSchedulers

      private final Queue<ChunkTickScheduler<T>> tickableChunkTickSchedulers
      Mappings:
      Namespace Name Mixin selector
      official f Ldpt;f:Ljava/util/Queue;
      intermediary field_35536 Lnet/minecraft/class_6757;field_35536:Ljava/util/Queue;
      named tickableChunkTickSchedulers Lnet/minecraft/world/tick/WorldTickScheduler;tickableChunkTickSchedulers:Ljava/util/Queue;
    • tickableTicks

      private final Queue<OrderedTick<T>> tickableTicks
      Mappings:
      Namespace Name Mixin selector
      official g Ldpt;g:Ljava/util/Queue;
      intermediary field_35537 Lnet/minecraft/class_6757;field_35537:Ljava/util/Queue;
      named tickableTicks Lnet/minecraft/world/tick/WorldTickScheduler;tickableTicks:Ljava/util/Queue;
    • tickedTicks

      private final List<OrderedTick<T>> tickedTicks
      Mappings:
      Namespace Name Mixin selector
      official h Ldpt;h:Ljava/util/List;
      intermediary field_35538 Lnet/minecraft/class_6757;field_35538:Ljava/util/List;
      named tickedTicks Lnet/minecraft/world/tick/WorldTickScheduler;tickedTicks:Ljava/util/List;
    • copiedTickableTicksList

      private final Set<OrderedTick<?>> copiedTickableTicksList
      Mappings:
      Namespace Name Mixin selector
      official i Ldpt;i:Ljava/util/Set;
      intermediary field_35539 Lnet/minecraft/class_6757;field_35539:Ljava/util/Set;
      named copiedTickableTicksList Lnet/minecraft/world/tick/WorldTickScheduler;copiedTickableTicksList:Ljava/util/Set;
    • queuedTickConsumer

      private final BiConsumer<ChunkTickScheduler<T>,OrderedTick<T>> queuedTickConsumer
      Mappings:
      Namespace Name Mixin selector
      official j Ldpt;j:Ljava/util/function/BiConsumer;
      intermediary field_35540 Lnet/minecraft/class_6757;field_35540:Ljava/util/function/BiConsumer;
      named queuedTickConsumer Lnet/minecraft/world/tick/WorldTickScheduler;queuedTickConsumer:Ljava/util/function/BiConsumer;
  • Constructor Details

    • WorldTickScheduler

      public WorldTickScheduler(LongPredicate tickingFutureReadyPredicate, Supplier<Profiler> profilerGetter)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldpt;<init>(Ljava/util/function/LongPredicate;Ljava/util/function/Supplier;)V
      intermediary <init> Lnet/minecraft/class_6757;<init>(Ljava/util/function/LongPredicate;Ljava/util/function/Supplier;)V
      named <init> Lnet/minecraft/world/tick/WorldTickScheduler;<init>(Ljava/util/function/LongPredicate;Ljava/util/function/Supplier;)V
  • Method Details

    • addChunkTickScheduler

      public void addChunkTickScheduler(ChunkPos pos, ChunkTickScheduler<T> scheduler)
      Mappings:
      Namespace Name Mixin selector
      official a Ldpt;a(Lbzk;Ldpr;)V
      intermediary method_39379 Lnet/minecraft/class_6757;method_39379(Lnet/minecraft/class_1923;Lnet/minecraft/class_6755;)V
      named addChunkTickScheduler Lnet/minecraft/world/tick/WorldTickScheduler;addChunkTickScheduler(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/world/tick/ChunkTickScheduler;)V
    • removeChunkTickScheduler

      public void removeChunkTickScheduler(ChunkPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Ldpt;a(Lbzk;)V
      intermediary method_39378 Lnet/minecraft/class_6757;method_39378(Lnet/minecraft/class_1923;)V
      named removeChunkTickScheduler Lnet/minecraft/world/tick/WorldTickScheduler;removeChunkTickScheduler(Lnet/minecraft/util/math/ChunkPos;)V
    • scheduleTick

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

      public void tick(long time, int maxTicks, BiConsumer<BlockPos,T> ticker)
      Mappings:
      Namespace Name Mixin selector
      official a Ldpt;a(JILjava/util/function/BiConsumer;)V
      intermediary method_39377 Lnet/minecraft/class_6757;method_39377(JILjava/util/function/BiConsumer;)V
      named tick Lnet/minecraft/world/tick/WorldTickScheduler;tick(JILjava/util/function/BiConsumer;)V
    • collectTickableTicks

      private void collectTickableTicks(long time, int maxTicks, Profiler profiler)
      Mappings:
      Namespace Name Mixin selector
      official a Ldpt;a(JILash;)V
      intermediary method_39376 Lnet/minecraft/class_6757;method_39376(JILnet/minecraft/class_3695;)V
      named collectTickableTicks Lnet/minecraft/world/tick/WorldTickScheduler;collectTickableTicks(JILnet/minecraft/util/profiler/Profiler;)V
    • collectTickableChunkTickSchedulers

      private void collectTickableChunkTickSchedulers(long time)
      Mappings:
      Namespace Name Mixin selector
      official a Ldpt;a(J)V
      intermediary method_39374 Lnet/minecraft/class_6757;method_39374(J)V
      named collectTickableChunkTickSchedulers Lnet/minecraft/world/tick/WorldTickScheduler;collectTickableChunkTickSchedulers(J)V
    • addTickableTicks

      private void addTickableTicks(long time, int maxTicks)
      Mappings:
      Namespace Name Mixin selector
      official a Ldpt;a(JI)V
      intermediary method_39375 Lnet/minecraft/class_6757;method_39375(JI)V
      named addTickableTicks Lnet/minecraft/world/tick/WorldTickScheduler;addTickableTicks(JI)V
    • delayAllTicks

      private void delayAllTicks()
      Mappings:
      Namespace Name Mixin selector
      official b Ldpt;b()V
      intermediary method_39392 Lnet/minecraft/class_6757;method_39392()V
      named delayAllTicks Lnet/minecraft/world/tick/WorldTickScheduler;delayAllTicks()V
    • schedule

      private void schedule(OrderedTick<T> tick)
      Mappings:
      Namespace Name Mixin selector
      official b Ldpt;b(Ldpw;)V
      intermediary method_39393 Lnet/minecraft/class_6757;method_39393(Lnet/minecraft/class_6760;)V
      named schedule Lnet/minecraft/world/tick/WorldTickScheduler;schedule(Lnet/minecraft/world/tick/OrderedTick;)V
    • addTickableTicks

      private void addTickableTicks(Queue<ChunkTickScheduler<T>> tickableChunkTickSchedulers, ChunkTickScheduler<T> chunkTickScheduler, long tick, int maxTicks)
      Mappings:
      Namespace Name Mixin selector
      official a Ldpt;a(Ljava/util/Queue;Ldpr;JI)V
      intermediary method_39389 Lnet/minecraft/class_6757;method_39389(Ljava/util/Queue;Lnet/minecraft/class_6755;JI)V
      named addTickableTicks Lnet/minecraft/world/tick/WorldTickScheduler;addTickableTicks(Ljava/util/Queue;Lnet/minecraft/world/tick/ChunkTickScheduler;JI)V
    • addTickableTick

      private void addTickableTick(OrderedTick<T> tick)
      Mappings:
      Namespace Name Mixin selector
      official c Ldpt;c(Ldpw;)V
      intermediary method_39395 Lnet/minecraft/class_6757;method_39395(Lnet/minecraft/class_6760;)V
      named addTickableTick Lnet/minecraft/world/tick/WorldTickScheduler;addTickableTick(Lnet/minecraft/world/tick/OrderedTick;)V
    • isTickableTicksCountUnder

      private boolean isTickableTicksCountUnder(int maxTicks)
      Mappings:
      Namespace Name Mixin selector
      official a Ldpt;a(I)Z
      intermediary method_39373 Lnet/minecraft/class_6757;method_39373(I)Z
      named isTickableTicksCountUnder Lnet/minecraft/world/tick/WorldTickScheduler;isTickableTicksCountUnder(I)Z
    • tick

      private void tick(BiConsumer<BlockPos,T> ticker)
      Mappings:
      Namespace Name Mixin selector
      official a Ldpt;a(Ljava/util/function/BiConsumer;)V
      intermediary method_39390 Lnet/minecraft/class_6757;method_39390(Ljava/util/function/BiConsumer;)V
      named tick Lnet/minecraft/world/tick/WorldTickScheduler;tick(Ljava/util/function/BiConsumer;)V
    • clear

      private void clear()
      Mappings:
      Namespace Name Mixin selector
      official c Ldpt;c()V
      intermediary method_39394 Lnet/minecraft/class_6757;method_39394()V
      named clear Lnet/minecraft/world/tick/WorldTickScheduler;clear()V
    • isQueued

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

      public boolean isTicking(BlockPos pos, T type)
      Specified by:
      isTicking in interface QueryableTickScheduler<T>
      Mappings:
      Namespace Name Mixin selector
      official b Ldps;b(Lgh;Ljava/lang/Object;)Z
      intermediary method_8677 Lnet/minecraft/class_6756;method_8677(Lnet/minecraft/class_2338;Ljava/lang/Object;)Z
      named isTicking Lnet/minecraft/world/tick/QueryableTickScheduler;isTicking(Lnet/minecraft/util/math/BlockPos;Ljava/lang/Object;)Z
    • copyTickableTicksList

      private void copyTickableTicksList()
      Mappings:
      Namespace Name Mixin selector
      official d Ldpt;d()V
      intermediary method_39396 Lnet/minecraft/class_6757;method_39396()V
      named copyTickableTicksList Lnet/minecraft/world/tick/WorldTickScheduler;copyTickableTicksList()V
    • visitChunks

      private void visitChunks(BlockBox box, WorldTickScheduler.ChunkVisitor<T> visitor)
      Mappings:
      Namespace Name Mixin selector
      official a Ldpt;a(Ldeh;Ldpt$a;)V
      intermediary method_39381 Lnet/minecraft/class_6757;method_39381(Lnet/minecraft/class_3341;Lnet/minecraft/class_6757$class_6758;)V
      named visitChunks Lnet/minecraft/world/tick/WorldTickScheduler;visitChunks(Lnet/minecraft/util/math/BlockBox;Lnet/minecraft/world/tick/WorldTickScheduler$ChunkVisitor;)V
    • clearNextTicks

      public void clearNextTicks(BlockBox box)
      Mappings:
      Namespace Name Mixin selector
      official a Ldpt;a(Ldeh;)V
      intermediary method_39380 Lnet/minecraft/class_6757;method_39380(Lnet/minecraft/class_3341;)V
      named clearNextTicks Lnet/minecraft/world/tick/WorldTickScheduler;clearNextTicks(Lnet/minecraft/util/math/BlockBox;)V
    • scheduleTicks

      public void scheduleTicks(BlockBox box, Vec3i offset)
      Mappings:
      Namespace Name Mixin selector
      official a Ldpt;a(Ldeh;Lhc;)V
      intermediary method_39383 Lnet/minecraft/class_6757;method_39383(Lnet/minecraft/class_3341;Lnet/minecraft/class_2382;)V
      named scheduleTicks Lnet/minecraft/world/tick/WorldTickScheduler;scheduleTicks(Lnet/minecraft/util/math/BlockBox;Lnet/minecraft/util/math/Vec3i;)V
    • getTickCount

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