Package net.minecraft.world.tick
Class WorldTickScheduler<T>
java.lang.Object
net.minecraft.world.tick.WorldTickScheduler<T>
- All Implemented Interfaces:
QueryableTickScheduler<T>
,TickScheduler<T>
- Mappings:
Namespace Name named net/minecraft/world/tick/WorldTickScheduler
intermediary net/minecraft/class_6757
official eyq
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Long2ObjectMap
<ChunkTickScheduler<T>> private static final Comparator
<ChunkTickScheduler<?>> private final Set
<OrderedTick<?>> private final Long2LongMap
private final BiConsumer
<ChunkTickScheduler<T>, OrderedTick<T>> private final Queue
<ChunkTickScheduler<T>> private final Queue
<OrderedTick<T>> private final List
<OrderedTick<T>> private final LongPredicate
-
Constructor Summary
ConstructorDescriptionWorldTickScheduler
(LongPredicate tickingFutureReadyPredicate, Supplier<Profiler> profilerGetter) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addChunkTickScheduler
(ChunkPos pos, ChunkTickScheduler<T> scheduler) private void
addTickableTick
(OrderedTick<T> tick) private void
addTickableTicks
(long time, int maxTicks) private void
addTickableTicks
(Queue<ChunkTickScheduler<T>> tickableChunkTickSchedulers, ChunkTickScheduler<T> chunkTickScheduler, long tick, int maxTicks) private void
clear()
void
clearNextTicks
(BlockBox box) private void
collectTickableChunkTickSchedulers
(long time) private void
collectTickableTicks
(long time, int maxTicks, Profiler profiler) private void
private void
int
boolean
private boolean
isTickableTicksCountUnder
(int maxTicks) boolean
void
private void
schedule
(OrderedTick<T> tick) void
scheduleTick
(OrderedTick<T> orderedTick) void
scheduleTicks
(BlockBox box, Vec3i offset) void
scheduleTicks
(WorldTickScheduler<T> scheduler, BlockBox box, Vec3i offset) void
tick
(long time, int maxTicks, BiConsumer<BlockPos, T> ticker) private void
tick
(BiConsumer<BlockPos, T> ticker) private void
visitChunks
(BlockBox box, WorldTickScheduler.ChunkVisitor<T> visitor)
-
Field Details
-
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
Leyq;a:Ljava/util/Comparator;
-
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
Leyq;b:Ljava/util/function/LongPredicate;
-
profilerGetter
- Mappings:
Namespace Name Mixin selector named profilerGetter
Lnet/minecraft/world/tick/WorldTickScheduler;profilerGetter:Ljava/util/function/Supplier;
intermediary field_35533
Lnet/minecraft/class_6757;field_35533:Ljava/util/function/Supplier;
official c
Leyq;c:Ljava/util/function/Supplier;
-
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 d
Leyq;d:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;
-
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 e
Leyq;e:Lit/unimi/dsi/fastutil/longs/Long2LongMap;
-
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 f
Leyq;f:Ljava/util/Queue;
-
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 g
Leyq;g:Ljava/util/Queue;
-
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 h
Leyq;h:Ljava/util/List;
-
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 i
Leyq;i:Ljava/util/Set;
-
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 j
Leyq;j:Ljava/util/function/BiConsumer;
-
-
Constructor Details
-
WorldTickScheduler
public WorldTickScheduler(LongPredicate tickingFutureReadyPredicate, Supplier<Profiler> profilerGetter) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/world/tick/WorldTickScheduler;<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
official <init>
Leyq;<init>(Ljava/util/function/LongPredicate;Ljava/util/function/Supplier;)V
-
-
Method Details
-
addChunkTickScheduler
- 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
Leyq;a(Ldcd;Leyo;)V
-
removeChunkTickScheduler
- 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
Leyq;a(Ldcd;)V
-
scheduleTick
- Specified by:
scheduleTick
in interfaceTickScheduler<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
-
tick
- 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
Leyq;a(JILjava/util/function/BiConsumer;)V
-
collectTickableTicks
- 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
Leyq;a(JILbnf;)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
Leyq;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
Leyq;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
Leyq;b()V
-
schedule
- 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
Leyq;b(Leyt;)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
Leyq;a(Ljava/util/Queue;Leyo;JI)V
-
addTickableTick
- 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
Leyq;c(Leyt;)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
Leyq;a(I)Z
-
tick
- 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
Leyq;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
Leyq;c()V
-
isQueued
- Specified by:
isQueued
in interfaceTickScheduler<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
-
isTicking
- Specified by:
isTicking
in interfaceQueryableTickScheduler<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
Leyp;b(Ljd;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
Leyq;d()V
-
visitChunks
- 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
Leyq;a(Lejj;Leyq$a;)V
-
clearNextTicks
- 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
Leyq;a(Lejj;)V
-
scheduleTicks
- 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
Leyq;a(Lejj;Lkh;)V
-
scheduleTicks
- 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
Leyq;a(Leyq;Lejj;Lkh;)V
-
getTickCount
public int getTickCount()- Specified by:
getTickCount
in interfaceTickScheduler<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
-