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 official dpe
intermediary net/minecraft/class_6755
named net/minecraft/world/tick/ChunkTickScheduler
-
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 TypeMethodDescriptionstatic <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 official a
Ldpe;a:Ljava/util/Queue;
intermediary field_35527
Lnet/minecraft/class_6755;field_35527:Ljava/util/Queue;
named tickQueue
Lnet/minecraft/world/tick/ChunkTickScheduler;tickQueue:Ljava/util/Queue;
-
ticks
- Mappings:
Namespace Name Mixin selector official b
Ldpe;b:Ljava/util/List;
intermediary field_35528
Lnet/minecraft/class_6755;field_35528:Ljava/util/List;
named ticks
Lnet/minecraft/world/tick/ChunkTickScheduler;ticks:Ljava/util/List;
-
queuedTicks
- Mappings:
Namespace Name Mixin selector official c
Ldpe;c:Ljava/util/Set;
intermediary field_35529
Lnet/minecraft/class_6755;field_35529:Ljava/util/Set;
named queuedTicks
Lnet/minecraft/world/tick/ChunkTickScheduler;queuedTicks:Ljava/util/Set;
-
tickConsumer
- Mappings:
Namespace Name Mixin selector official d
Ldpe;d:Ljava/util/function/BiConsumer;
intermediary field_35530
Lnet/minecraft/class_6755;field_35530:Ljava/util/function/BiConsumer;
named tickConsumer
Lnet/minecraft/world/tick/ChunkTickScheduler;tickConsumer:Ljava/util/function/BiConsumer;
-
-
Constructor Details
-
ChunkTickScheduler
public ChunkTickScheduler() -
ChunkTickScheduler
- Mappings:
Namespace Name Mixin selector official <init>
Ldpe;<init>(Ljava/util/List;)V
intermediary <init>
Lnet/minecraft/class_6755;<init>(Ljava/util/List;)V
named <init>
Lnet/minecraft/world/tick/ChunkTickScheduler;<init>(Ljava/util/List;)V
-
-
Method Details
-
setTickConsumer
public void setTickConsumer(@Nullable @Nullable BiConsumer<ChunkTickScheduler<T>, OrderedTick<T>> tickConsumer) - Mappings:
Namespace Name Mixin selector official a
Ldpe;a(Ljava/util/function/BiConsumer;)V
intermediary method_39366
Lnet/minecraft/class_6755;method_39366(Ljava/util/function/BiConsumer;)V
named setTickConsumer
Lnet/minecraft/world/tick/ChunkTickScheduler;setTickConsumer(Ljava/util/function/BiConsumer;)V
-
peekNextTick
- Mappings:
Namespace Name Mixin selector official b
Ldpe;b()Ldpj;
intermediary method_39369
Lnet/minecraft/class_6755;method_39369()Lnet/minecraft/class_6760;
named peekNextTick
Lnet/minecraft/world/tick/ChunkTickScheduler;peekNextTick()Lnet/minecraft/world/tick/OrderedTick;
-
pollNextTick
- Mappings:
Namespace Name Mixin selector official c
Ldpe;c()Ldpj;
intermediary method_39371
Lnet/minecraft/class_6755;method_39371()Lnet/minecraft/class_6760;
named pollNextTick
Lnet/minecraft/world/tick/ChunkTickScheduler;pollNextTick()Lnet/minecraft/world/tick/OrderedTick;
-
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
-
queueTick
- Mappings:
Namespace Name Mixin selector official b
Ldpe;b(Ldpj;)V
intermediary method_39370
Lnet/minecraft/class_6755;method_39370(Lnet/minecraft/class_6760;)V
named queueTick
Lnet/minecraft/world/tick/ChunkTickScheduler;queueTick(Lnet/minecraft/world/tick/OrderedTick;)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
-
removeTicksIf
- Mappings:
Namespace Name Mixin selector official a
Ldpe;a(Ljava/util/function/Predicate;)V
intermediary method_39367
Lnet/minecraft/class_6755;method_39367(Ljava/util/function/Predicate;)V
named removeTicksIf
Lnet/minecraft/world/tick/ChunkTickScheduler;removeTicksIf(Ljava/util/function/Predicate;)V
-
getQueueAsStream
- Mappings:
Namespace Name Mixin selector official d
Ldpe;d()Ljava/util/stream/Stream;
intermediary method_39372
Lnet/minecraft/class_6755;method_39372()Ljava/util/stream/Stream;
named getQueueAsStream
Lnet/minecraft/world/tick/ChunkTickScheduler;getQueueAsStream()Ljava/util/stream/Stream;
-
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
-
toNbt
- Specified by:
toNbt
in interfaceSerializableTickScheduler<T>
- Mappings:
Namespace Name Mixin selector official a
Ldpe;a(JLjava/util/function/Function;)Loh;
intermediary method_39365
Lnet/minecraft/class_6755;method_39365(JLjava/util/function/Function;)Lnet/minecraft/class_2499;
named toNbt
Lnet/minecraft/world/tick/ChunkTickScheduler;toNbt(JLjava/util/function/Function;)Lnet/minecraft/nbt/NbtList;
-
disable
public void disable(long time) - Mappings:
Namespace Name Mixin selector official a
Ldpe;a(J)V
intermediary method_39364
Lnet/minecraft/class_6755;method_39364(J)V
named disable
Lnet/minecraft/world/tick/ChunkTickScheduler;disable(J)V
-
create
public static <T> ChunkTickScheduler<T> create(NbtList tickQueue, Function<String, Optional<T>> nameToTypeFunction, ChunkPos pos) - Mappings:
Namespace Name Mixin selector official a
Ldpe;a(Loh;Ljava/util/function/Function;Lbzd;)Ldpe;
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;
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;
-