Package net.minecraft.server.world
Class SimpleTickScheduler<T>
java.lang.Object
net.minecraft.server.world.SimpleTickScheduler<T>
- All Implemented Interfaces:
TickScheduler<T>
public class SimpleTickScheduler<T> extends Object implements TickScheduler<T>
- Mappings:
Namespace Name official btb
intermediary net/minecraft/class_4296
named net/minecraft/server/world/SimpleTickScheduler
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
SimpleTickScheduler.Tick<T>
-
Field Summary
Fields Modifier and Type Field Description private Function<T,Identifier>
identifierProvider
private List<SimpleTickScheduler.Tick<T>>
scheduledTicks
-
Constructor Summary
Constructors Modifier Constructor Description private
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 Type Method Description static <T> SimpleTickScheduler<T>
fromNbt(ListTag ticks, Function<T,Identifier> function, Function<Identifier,T> function2)
boolean
isScheduled(BlockPos pos, T object)
boolean
isTicking(BlockPos pos, T object)
void
schedule(BlockPos pos, T object, int delay, TickPriority priority)
void
scheduleTo(TickScheduler<T> scheduler)
ListTag
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
Lbtb;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
Lbtb;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>
Lbtb;<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>
Lbtb;<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
Lbun;a(Lfx;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
Lbun;a(Lfx;Ljava/lang/Object;ILbup;)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
Lbun;b(Lfx;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
Lbtb;b()Lmw;
intermediary method_20463
Lnet/minecraft/class_4296;method_20463()Lnet/minecraft/class_2499;
named toNbt
Lnet/minecraft/server/world/SimpleTickScheduler;toNbt()Lnet/minecraft/nbt/ListTag;
-
fromNbt
public static <T> SimpleTickScheduler<T> fromNbt(ListTag ticks, Function<T,Identifier> function, Function<Identifier,T> function2)- Mappings:
Namespace Name Mixin selector official a
Lbtb;a(Lmw;Ljava/util/function/Function;Ljava/util/function/Function;)Lbtb;
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/ListTag;Ljava/util/function/Function;Ljava/util/function/Function;)Lnet/minecraft/server/world/SimpleTickScheduler;
-
scheduleTo
- Mappings:
Namespace Name Mixin selector official a
Lbtb;a(Lbun;)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
-