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 fdk
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Set
<OrderedTick<?>> private @Nullable BiConsumer
<ChunkTickScheduler<T>, OrderedTick<T>> private final Queue
<OrderedTick<T>> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncollectTicks
(long time) static <T> ChunkTickScheduler
<T> 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
Lfdk;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
Lfdk;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
Lfdk;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
Lfdk;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>
Lfdk;<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
Lfdk;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
Lfdk;b()Lfdp;
-
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
Lfdk;c()Lfdp;
-
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
Lfdr;a(Lfdp;)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
Lfdk;b(Lfdp;)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
Lfdr;a(Ljh;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
Lfdk;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
Lfdk;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
Lfdr;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
Lfdq;a(J)Ljava/util/List;
-
toNbt
- Mappings:
Namespace Name Mixin selector named toNbt
Lnet/minecraft/world/tick/ChunkTickScheduler;toNbt(JLjava/util/function/Function;)Lnet/minecraft/nbt/NbtList;
intermediary method_39365
Lnet/minecraft/class_6755;method_39365(JLjava/util/function/Function;)Lnet/minecraft/class_2499;
official a
Lfdk;a(JLjava/util/function/Function;)Lvd;
-
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
Lfdk;b(J)V
-
create
public static <T> ChunkTickScheduler<T> create(NbtList tickQueue, Function<String, Optional<T>> nameToTypeFunction, ChunkPos pos) - Mappings:
Namespace Name Mixin selector named create
Lnet/minecraft/world/tick/ChunkTickScheduler;create(Lnet/minecraft/nbt/NbtList;Ljava/util/function/Function;Lnet/minecraft/util/math/ChunkPos;)Lnet/minecraft/world/tick/ChunkTickScheduler;
intermediary method_39368
Lnet/minecraft/class_6755;method_39368(Lnet/minecraft/class_2499;Ljava/util/function/Function;Lnet/minecraft/class_1923;)Lnet/minecraft/class_6755;
official a
Lfdk;a(Lvd;Ljava/util/function/Function;Ldgn;)Lfdk;
-