Package net.minecraft.world.tick
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 named net/minecraft/world/tick/ChunkTickScheduler
intermediary net/minecraft/class_6755
official fkf
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Set
<OrderedTick<?>> private @Nullable BiConsumer
<ChunkTickScheduler<T>, OrderedTick<T>> private final Queue
<OrderedTick<T>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncollectTicks
(long time) void
disable
(long time) int
boolean
private void
queueTick
(OrderedTick<T> orderedTick) void
removeTicksIf
(Predicate<OrderedTick<T>> predicate) void
scheduleTick
(OrderedTick<T> orderedTick) void
setTickConsumer
(@Nullable BiConsumer<ChunkTickScheduler<T>, OrderedTick<T>> tickConsumer)
-
Field Details
-
tickQueue
- Mappings:
Namespace Name Mixin selector named tickQueue
Lnet/minecraft/world/tick/ChunkTickScheduler;tickQueue:Ljava/util/Queue;
intermediary field_35527
Lnet/minecraft/class_6755;field_35527:Ljava/util/Queue;
official a
Lfkf;a:Ljava/util/Queue;
-
ticks
- Mappings:
Namespace Name Mixin selector named ticks
Lnet/minecraft/world/tick/ChunkTickScheduler;ticks:Ljava/util/List;
intermediary field_35528
Lnet/minecraft/class_6755;field_35528:Ljava/util/List;
official b
Lfkf;b:Ljava/util/List;
-
queuedTicks
- Mappings:
Namespace Name Mixin selector named queuedTicks
Lnet/minecraft/world/tick/ChunkTickScheduler;queuedTicks:Ljava/util/Set;
intermediary field_35529
Lnet/minecraft/class_6755;field_35529:Ljava/util/Set;
official c
Lfkf;c:Ljava/util/Set;
-
tickConsumer
- Mappings:
Namespace Name Mixin selector named tickConsumer
Lnet/minecraft/world/tick/ChunkTickScheduler;tickConsumer:Ljava/util/function/BiConsumer;
intermediary field_35530
Lnet/minecraft/class_6755;field_35530:Ljava/util/function/BiConsumer;
official d
Lfkf;d:Ljava/util/function/BiConsumer;
-
-
Constructor Details
-
ChunkTickScheduler
public ChunkTickScheduler() -
ChunkTickScheduler
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/world/tick/ChunkTickScheduler;<init>(Ljava/util/List;)V
intermediary <init>
Lnet/minecraft/class_6755;<init>(Ljava/util/List;)V
official <init>
Lfkf;<init>(Ljava/util/List;)V
-
-
Method Details
-
setTickConsumer
public void setTickConsumer(@Nullable @Nullable BiConsumer<ChunkTickScheduler<T>, OrderedTick<T>> tickConsumer) - Mappings:
Namespace Name Mixin selector named setTickConsumer
Lnet/minecraft/world/tick/ChunkTickScheduler;setTickConsumer(Ljava/util/function/BiConsumer;)V
intermediary method_39366
Lnet/minecraft/class_6755;method_39366(Ljava/util/function/BiConsumer;)V
official a
Lfkf;a(Ljava/util/function/BiConsumer;)V
-
peekNextTick
- Mappings:
Namespace Name Mixin selector named peekNextTick
Lnet/minecraft/world/tick/ChunkTickScheduler;peekNextTick()Lnet/minecraft/world/tick/OrderedTick;
intermediary method_39369
Lnet/minecraft/class_6755;method_39369()Lnet/minecraft/class_6760;
official b
Lfkf;b()Lfkk;
-
pollNextTick
- Mappings:
Namespace Name Mixin selector named pollNextTick
Lnet/minecraft/world/tick/ChunkTickScheduler;pollNextTick()Lnet/minecraft/world/tick/OrderedTick;
intermediary method_39371
Lnet/minecraft/class_6755;method_39371()Lnet/minecraft/class_6760;
official c
Lfkf;c()Lfkk;
-
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
Lfkm;a(Lfkk;)V
-
queueTick
- Mappings:
Namespace Name Mixin selector named queueTick
Lnet/minecraft/world/tick/ChunkTickScheduler;queueTick(Lnet/minecraft/world/tick/OrderedTick;)V
intermediary method_39370
Lnet/minecraft/class_6755;method_39370(Lnet/minecraft/class_6760;)V
official b
Lfkf;b(Lfkk;)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
Lfkm;a(Ljb;Ljava/lang/Object;)Z
-
removeTicksIf
- Mappings:
Namespace Name Mixin selector named removeTicksIf
Lnet/minecraft/world/tick/ChunkTickScheduler;removeTicksIf(Ljava/util/function/Predicate;)V
intermediary method_39367
Lnet/minecraft/class_6755;method_39367(Ljava/util/function/Predicate;)V
official a
Lfkf;a(Ljava/util/function/Predicate;)V
-
getQueueAsStream
- Mappings:
Namespace Name Mixin selector named getQueueAsStream
Lnet/minecraft/world/tick/ChunkTickScheduler;getQueueAsStream()Ljava/util/stream/Stream;
intermediary method_39372
Lnet/minecraft/class_6755;method_39372()Ljava/util/stream/Stream;
official d
Lfkf;d()Ljava/util/stream/Stream;
-
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
Lfkm;a()I
-
collectTicks
- Specified by:
collectTicks
in interfaceSerializableTickScheduler<T>
- Mappings:
Namespace Name Mixin selector named collectTicks
Lnet/minecraft/world/tick/SerializableTickScheduler;collectTicks(J)Ljava/util/List;
intermediary method_61898
Lnet/minecraft/class_6761;method_61898(J)Ljava/util/List;
official a
Lfkl;a(J)Ljava/util/List;
-
disable
public void disable(long time) - Mappings:
Namespace Name Mixin selector named disable
Lnet/minecraft/world/tick/ChunkTickScheduler;disable(J)V
intermediary method_39364
Lnet/minecraft/class_6755;method_39364(J)V
official b
Lfkf;b(J)V
-