Package net.minecraft.server.world
Class SimpleTickScheduler<T>
java.lang.Object
net.minecraft.server.world.SimpleTickScheduler<T>
- All Implemented Interfaces:
TickScheduler<T>
- Mappings:
Namespace Name official bvv
intermediary net/minecraft/class_4296
named net/minecraft/server/world/SimpleTickScheduler
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Function<T,
Identifier> private final List<SimpleTickScheduler.Tick<T>>
-
Constructor Summary
ModifierConstructorDescriptionprivate
SimpleTickScheduler
(Function<T, Identifier> identifierProvider, List<SimpleTickScheduler.Tick<T>> scheduledTicks) SimpleTickScheduler
(Function<T, Identifier> identifierProvider, List<ScheduledTick<T>> scheduledTicks, long startTime) -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> SimpleTickScheduler<T>
fromNbt
(NbtList ticks, Function<T, Identifier> function, Function<Identifier, T> function2) int
getTicks()
boolean
isScheduled
(BlockPos pos, T object) boolean
void
schedule
(BlockPos pos, T object, int delay, TickPriority priority) void
scheduleTo
(TickScheduler<T> scheduler) toNbt()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.TickScheduler
schedule
-
Field Details
-
scheduledTicks
- Mappings:
Namespace Name Mixin selector official a
Lbvv;a:Ljava/util/List;
intermediary field_19275
Lnet/minecraft/class_4296;field_19275:Ljava/util/List;
named scheduledTicks
Lnet/minecraft/server/world/SimpleTickScheduler;scheduledTicks:Ljava/util/List;
-
identifierProvider
- Mappings:
Namespace Name Mixin selector official b
Lbvv;b:Ljava/util/function/Function;
intermediary field_19276
Lnet/minecraft/class_4296;field_19276:Ljava/util/function/Function;
named identifierProvider
Lnet/minecraft/server/world/SimpleTickScheduler;identifierProvider:Ljava/util/function/Function;
-
-
Constructor Details
-
SimpleTickScheduler
public SimpleTickScheduler(Function<T, Identifier> identifierProvider, List<ScheduledTick<T>> scheduledTicks, long startTime) - Mappings:
Namespace Name Mixin selector official <init>
Lbvv;<init>(Ljava/util/function/Function;Ljava/util/List;J)V
intermediary <init>
Lnet/minecraft/class_4296;<init>(Ljava/util/function/Function;Ljava/util/List;J)V
named <init>
Lnet/minecraft/server/world/SimpleTickScheduler;<init>(Ljava/util/function/Function;Ljava/util/List;J)V
-
SimpleTickScheduler
private SimpleTickScheduler(Function<T, Identifier> identifierProvider, List<SimpleTickScheduler.Tick<T>> scheduledTicks) - Mappings:
Namespace Name Mixin selector official <init>
Lbvv;<init>(Ljava/util/function/Function;Ljava/util/List;)V
intermediary <init>
Lnet/minecraft/class_4296;<init>(Ljava/util/function/Function;Ljava/util/List;)V
named <init>
Lnet/minecraft/server/world/SimpleTickScheduler;<init>(Ljava/util/function/Function;Ljava/util/List;)V
-
-
Method Details
-
isScheduled
- Specified by:
isScheduled
in interfaceTickScheduler<T>
- Mappings:
Namespace Name Mixin selector official a
Lbxh;a(Lgg;Ljava/lang/Object;)Z
intermediary method_8674
Lnet/minecraft/class_1951;method_8674(Lnet/minecraft/class_2338;Ljava/lang/Object;)Z
named isScheduled
Lnet/minecraft/world/TickScheduler;isScheduled(Lnet/minecraft/util/math/BlockPos;Ljava/lang/Object;)Z
-
schedule
- Specified by:
schedule
in interfaceTickScheduler<T>
- Mappings:
Namespace Name Mixin selector official a
Lbxh;a(Lgg;Ljava/lang/Object;ILbxj;)V
intermediary method_8675
Lnet/minecraft/class_1951;method_8675(Lnet/minecraft/class_2338;Ljava/lang/Object;ILnet/minecraft/class_1953;)V
named schedule
Lnet/minecraft/world/TickScheduler;schedule(Lnet/minecraft/util/math/BlockPos;Ljava/lang/Object;ILnet/minecraft/world/TickPriority;)V
-
isTicking
- Specified by:
isTicking
in interfaceTickScheduler<T>
- Mappings:
Namespace Name Mixin selector official b
Lbxh;b(Lgg;Ljava/lang/Object;)Z
intermediary method_8677
Lnet/minecraft/class_1951;method_8677(Lnet/minecraft/class_2338;Ljava/lang/Object;)Z
named isTicking
Lnet/minecraft/world/TickScheduler;isTicking(Lnet/minecraft/util/math/BlockPos;Ljava/lang/Object;)Z
-
toNbt
- Mappings:
Namespace Name Mixin selector official b
Lbvv;b()Lng;
intermediary method_20463
Lnet/minecraft/class_4296;method_20463()Lnet/minecraft/class_2499;
named toNbt
Lnet/minecraft/server/world/SimpleTickScheduler;toNbt()Lnet/minecraft/nbt/NbtList;
-
fromNbt
public static <T> SimpleTickScheduler<T> fromNbt(NbtList ticks, Function<T, Identifier> function, Function<Identifier, T> function2) - Mappings:
Namespace Name Mixin selector official a
Lbvv;a(Lng;Ljava/util/function/Function;Ljava/util/function/Function;)Lbvv;
intermediary method_20512
Lnet/minecraft/class_4296;method_20512(Lnet/minecraft/class_2499;Ljava/util/function/Function;Ljava/util/function/Function;)Lnet/minecraft/class_4296;
named fromNbt
Lnet/minecraft/server/world/SimpleTickScheduler;fromNbt(Lnet/minecraft/nbt/NbtList;Ljava/util/function/Function;Ljava/util/function/Function;)Lnet/minecraft/server/world/SimpleTickScheduler;
-
scheduleTo
- Mappings:
Namespace Name Mixin selector official a
Lbvv;a(Lbxh;)V
intermediary method_26368
Lnet/minecraft/class_4296;method_26368(Lnet/minecraft/class_1951;)V
named scheduleTo
Lnet/minecraft/server/world/SimpleTickScheduler;scheduleTo(Lnet/minecraft/world/TickScheduler;)V
-
getTicks
public int getTicks()- Specified by:
getTicks
in interfaceTickScheduler<T>
- Mappings:
Namespace Name Mixin selector official a
Lbxh;a()I
intermediary method_20825
Lnet/minecraft/class_1951;method_20825()I
named getTicks
Lnet/minecraft/world/TickScheduler;getTicks()I
-