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
named net/minecraft/world/tick/WorldTickScheduler
intermediary net/minecraft/class_6757
official fdm
  • Field Details

    • COMPARATOR

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

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

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

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

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

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

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

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

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

    • WorldTickScheduler

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

    • addChunkTickScheduler

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

      public void removeChunkTickScheduler(ChunkPos pos)
      Mappings:
      Namespace Name Mixin selector
      named removeChunkTickScheduler Lnet/minecraft/world/tick/WorldTickScheduler;removeChunkTickScheduler(Lnet/minecraft/util/math/ChunkPos;)V
      intermediary method_39378 Lnet/minecraft/class_6757;method_39378(Lnet/minecraft/class_1923;)V
      official a Lfdm;a(Ldgn;)V
    • 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 Lfdr;a(Lfdp;)V
    • tick

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

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

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

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

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

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

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

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

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

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

      private void clear()
      Mappings:
      Namespace Name Mixin selector
      named clear Lnet/minecraft/world/tick/WorldTickScheduler;clear()V
      intermediary method_39394 Lnet/minecraft/class_6757;method_39394()V
      official c Lfdm;c()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 Lfdr;a(Ljh;Ljava/lang/Object;)Z
    • isTicking

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

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

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

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

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

      public void scheduleTicks(WorldTickScheduler<T> scheduler, BlockBox box, Vec3i offset)
      Mappings:
      Namespace Name Mixin selector
      named scheduleTicks Lnet/minecraft/world/tick/WorldTickScheduler;scheduleTicks(Lnet/minecraft/world/tick/WorldTickScheduler;Lnet/minecraft/util/math/BlockBox;Lnet/minecraft/util/math/Vec3i;)V
      intermediary method_48167 Lnet/minecraft/class_6757;method_48167(Lnet/minecraft/class_6757;Lnet/minecraft/class_3341;Lnet/minecraft/class_2382;)V
      official a Lfdm;a(Lfdm;Leob;Lkl;)V
    • 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 Lfdr;a()I