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 official dpg
intermediary net/minecraft/class_6757
named net/minecraft/world/tick/WorldTickScheduler
-
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
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 official a
Ldpg;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
- Mappings:
Namespace Name Mixin selector official b
Ldpg;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
- Mappings:
Namespace Name Mixin selector official c
Ldpg;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
- Mappings:
Namespace Name Mixin selector official d
Ldpg;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
- Mappings:
Namespace Name Mixin selector official e
Ldpg;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
- Mappings:
Namespace Name Mixin selector official f
Ldpg;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
- Mappings:
Namespace Name Mixin selector official g
Ldpg;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
- Mappings:
Namespace Name Mixin selector official h
Ldpg;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
- Mappings:
Namespace Name Mixin selector official i
Ldpg;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
- Mappings:
Namespace Name Mixin selector official j
Ldpg;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>
Ldpg;<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
- Mappings:
Namespace Name Mixin selector official a
Ldpg;a(Lbzd;Ldpe;)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
- Mappings:
Namespace Name Mixin selector official a
Ldpg;a(Lbzd;)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
- Specified by:
scheduleTick
in interfaceTickScheduler<T>
- Mappings:
Namespace Name Mixin selector official a
Ldpl;a(Ldpj;)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
- Mappings:
Namespace Name Mixin selector official a
Ldpg;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
- Mappings:
Namespace Name Mixin selector official a
Ldpg;a(JILasa;)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
Ldpg;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
Ldpg;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
Ldpg;b()V
intermediary method_39392
Lnet/minecraft/class_6757;method_39392()V
named delayAllTicks
Lnet/minecraft/world/tick/WorldTickScheduler;delayAllTicks()V
-
schedule
- Mappings:
Namespace Name Mixin selector official b
Ldpg;b(Ldpj;)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
Ldpg;a(Ljava/util/Queue;Ldpe;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
- Mappings:
Namespace Name Mixin selector official c
Ldpg;c(Ldpj;)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
Ldpg;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
- Mappings:
Namespace Name Mixin selector official a
Ldpg;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
Ldpg;c()V
intermediary method_39394
Lnet/minecraft/class_6757;method_39394()V
named clear
Lnet/minecraft/world/tick/WorldTickScheduler;clear()V
-
isQueued
- Specified by:
isQueued
in interfaceTickScheduler<T>
- Mappings:
Namespace Name Mixin selector official a
Ldpl;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
- Specified by:
isTicking
in interfaceQueryableTickScheduler<T>
- Mappings:
Namespace Name Mixin selector official b
Ldpf;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
Ldpg;d()V
intermediary method_39396
Lnet/minecraft/class_6757;method_39396()V
named copyTickableTicksList
Lnet/minecraft/world/tick/WorldTickScheduler;copyTickableTicksList()V
-
visitChunks
- Mappings:
Namespace Name Mixin selector official a
Ldpg;a(Lddx;Ldpg$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
- Mappings:
Namespace Name Mixin selector official a
Ldpg;a(Lddx;)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
- Mappings:
Namespace Name Mixin selector official a
Ldpg;a(Lddx;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 interfaceTickScheduler<T>
- Mappings:
Namespace Name Mixin selector official a
Ldpl;a()I
intermediary method_20825
Lnet/minecraft/class_6762;method_20825()I
named getTickCount
Lnet/minecraft/world/tick/TickScheduler;getTickCount()I
-