public class MultiTickScheduler<T> extends Object implements TickScheduler<T>
| Modifier and Type | Field and Description |
|---|---|
private Function<BlockPos,TickScheduler<T>> |
mapper |
| Constructor and Description |
|---|
MultiTickScheduler(Function<BlockPos,TickScheduler<T>> mapper) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isScheduled(BlockPos pos,
T object) |
boolean |
isTicking(BlockPos pos,
T object) |
void |
schedule(BlockPos pos,
T object,
int delay,
TickPriority priority) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitscheduleprivate final Function<BlockPos,TickScheduler<T>> mapper
public MultiTickScheduler(Function<BlockPos,TickScheduler<T>> mapper)
public boolean isScheduled(BlockPos pos, T object)
isScheduled in interface TickScheduler<T>public void schedule(BlockPos pos, T object, int delay, TickPriority priority)
schedule in interface TickScheduler<T>public boolean isTicking(BlockPos pos, T object)
isTicking in interface TickScheduler<T>