Package net.minecraft.world
Class MultiTickScheduler<T>
java.lang.Object
net.minecraft.world.MultiTickScheduler<T>
- All Implemented Interfaces:
TickScheduler<T>
public class MultiTickScheduler<T> extends Object implements TickScheduler<T>
-
Field Summary
Fields Modifier and Type Field Description private Function<BlockPos,TickScheduler<T>>
mapper
-
Constructor Summary
Constructors Constructor Description MultiTickScheduler(Function<BlockPos,TickScheduler<T>> mapper)
-
Method Summary
Modifier and Type Method Description boolean
isScheduled(BlockPos pos, T object)
boolean
isTicking(BlockPos pos, T object)
void
schedule(BlockPos pos, T object, int delay, TickPriority priority)
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
-
mapper
-
-
Constructor Details
-
MultiTickScheduler
-
-
Method Details
-
isScheduled
- Specified by:
isScheduled
in interfaceTickScheduler<T>
-
schedule
- Specified by:
schedule
in interfaceTickScheduler<T>
-
isTicking
- Specified by:
isTicking
in interfaceTickScheduler<T>
-