Package net.minecraft.server.world
Class ServerTickScheduler<T>
java.lang.Object
net.minecraft.server.world.ServerTickScheduler<T>
- All Implemented Interfaces:
TickScheduler<T>
public class ServerTickScheduler<T> extends Object implements TickScheduler<T>
- Mappings:
Namespace Name official buk
intermediary net/minecraft/class_1949
named net/minecraft/server/world/ServerTickScheduler
-
Field Summary
Fields Modifier and Type Field Description private List<ScheduledTick<T>>
consumedTickActions
private Queue<ScheduledTick<T>>
currentTickActions
private Function<T,Identifier>
idToName
protected Predicate<T>
invalidObjPredicate
private Set<ScheduledTick<T>>
scheduledTickActions
private Set<ScheduledTick<T>>
scheduledTickActionsInOrder
private Consumer<ScheduledTick<T>>
tickConsumer
private ServerWorld
world
-
Constructor Summary
Constructors Constructor Description ServerTickScheduler(ServerWorld world, Predicate<T> invalidObjPredicate, Function<T,Identifier> idToName, Consumer<ScheduledTick<T>> consumer)
-
Method Summary
Modifier and Type Method Description private void
addScheduledTick(ScheduledTick<T> scheduledTick)
void
copyScheduledTicks(BlockBox box, BlockPos offset)
List<ScheduledTick<T>>
getScheduledTicks(BlockBox bounds, boolean updateState, boolean getStaleTicks)
List<ScheduledTick<T>>
getScheduledTicksInChunk(ChunkPos chunkPos, boolean updateState, boolean getStaleTicks)
int
getTicks()
boolean
isScheduled(BlockPos pos, T object)
boolean
isTicking(BlockPos pos, T object)
void
schedule(BlockPos pos, T object, int delay, TickPriority priority)
private static <T> ListTag
serializeScheduledTicks(Function<T,Identifier> identifierProvider, Iterable<ScheduledTick<T>> scheduledTicks, long time)
void
tick()
ListTag
toTag(ChunkPos chunkPos)
private List<ScheduledTick<T>>
transferTicksInBounds(List<ScheduledTick<T>> dst, Collection<ScheduledTick<T>> src, BlockBox bounds, boolean move)
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
-
invalidObjPredicate
- Mappings:
Namespace Name Mixin selector official a
Lbuk;a:Ljava/util/function/Predicate;
intermediary field_9297
Lnet/minecraft/class_1949;field_9297:Ljava/util/function/Predicate;
named invalidObjPredicate
Lnet/minecraft/server/world/ServerTickScheduler;invalidObjPredicate:Ljava/util/function/Predicate;
-
idToName
- Mappings:
Namespace Name Mixin selector official b
Lbuk;b:Ljava/util/function/Function;
intermediary field_9294
Lnet/minecraft/class_1949;field_9294:Ljava/util/function/Function;
named idToName
Lnet/minecraft/server/world/ServerTickScheduler;idToName:Ljava/util/function/Function;
-
scheduledTickActions
- Mappings:
Namespace Name Mixin selector official c
Lbuk;c:Ljava/util/Set;
intermediary field_9296
Lnet/minecraft/class_1949;field_9296:Ljava/util/Set;
named scheduledTickActions
Lnet/minecraft/server/world/ServerTickScheduler;scheduledTickActions:Ljava/util/Set;
-
scheduledTickActionsInOrder
- Mappings:
Namespace Name Mixin selector official d
Lbuk;d:Ljava/util/Set;
intermediary field_19341
Lnet/minecraft/class_1949;field_19341:Ljava/util/Set;
named scheduledTickActionsInOrder
Lnet/minecraft/server/world/ServerTickScheduler;scheduledTickActionsInOrder:Ljava/util/Set;
-
world
- Mappings:
Namespace Name Mixin selector official e
Lbuk;e:Laav;
intermediary field_9301
Lnet/minecraft/class_1949;field_9301:Lnet/minecraft/class_3218;
named world
Lnet/minecraft/server/world/ServerTickScheduler;world:Lnet/minecraft/server/world/ServerWorld;
-
currentTickActions
- Mappings:
Namespace Name Mixin selector official f
Lbuk;f:Ljava/util/Queue;
intermediary field_9299
Lnet/minecraft/class_1949;field_9299:Ljava/util/Queue;
named currentTickActions
Lnet/minecraft/server/world/ServerTickScheduler;currentTickActions:Ljava/util/Queue;
-
consumedTickActions
- Mappings:
Namespace Name Mixin selector official g
Lbuk;g:Ljava/util/List;
intermediary field_19338
Lnet/minecraft/class_1949;field_19338:Ljava/util/List;
named consumedTickActions
Lnet/minecraft/server/world/ServerTickScheduler;consumedTickActions:Ljava/util/List;
-
tickConsumer
- Mappings:
Namespace Name Mixin selector official h
Lbuk;h:Ljava/util/function/Consumer;
intermediary field_9300
Lnet/minecraft/class_1949;field_9300:Ljava/util/function/Consumer;
named tickConsumer
Lnet/minecraft/server/world/ServerTickScheduler;tickConsumer:Ljava/util/function/Consumer;
-
-
Constructor Details
-
ServerTickScheduler
public ServerTickScheduler(ServerWorld world, Predicate<T> invalidObjPredicate, Function<T,Identifier> idToName, Consumer<ScheduledTick<T>> consumer)- Mappings:
Namespace Name Mixin selector official <init>
Lbuk;<init>(Laav;Ljava/util/function/Predicate;Ljava/util/function/Function;Ljava/util/function/Consumer;)V
intermediary <init>
Lnet/minecraft/class_1949;<init>(Lnet/minecraft/class_3218;Ljava/util/function/Predicate;Ljava/util/function/Function;Ljava/util/function/Consumer;)V
named <init>
Lnet/minecraft/server/world/ServerTickScheduler;<init>(Lnet/minecraft/server/world/ServerWorld;Ljava/util/function/Predicate;Ljava/util/function/Function;Ljava/util/function/Consumer;)V
-
-
Method Details
-
tick
public void tick()- Mappings:
Namespace Name Mixin selector official b
Lbuk;b()V
intermediary method_8670
Lnet/minecraft/class_1949;method_8670()V
named tick
Lnet/minecraft/server/world/ServerTickScheduler;tick()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
-
getScheduledTicksInChunk
public List<ScheduledTick<T>> getScheduledTicksInChunk(ChunkPos chunkPos, boolean updateState, boolean getStaleTicks)- Mappings:
Namespace Name Mixin selector official a
Lbuk;a(Lbta;ZZ)Ljava/util/List;
intermediary method_8671
Lnet/minecraft/class_1949;method_8671(Lnet/minecraft/class_1923;ZZ)Ljava/util/List;
named getScheduledTicksInChunk
Lnet/minecraft/server/world/ServerTickScheduler;getScheduledTicksInChunk(Lnet/minecraft/util/math/ChunkPos;ZZ)Ljava/util/List;
-
getScheduledTicks
public List<ScheduledTick<T>> getScheduledTicks(BlockBox bounds, boolean updateState, boolean getStaleTicks)- Mappings:
Namespace Name Mixin selector official a
Lbuk;a(Lcwn;ZZ)Ljava/util/List;
intermediary method_8672
Lnet/minecraft/class_1949;method_8672(Lnet/minecraft/class_3341;ZZ)Ljava/util/List;
named getScheduledTicks
Lnet/minecraft/server/world/ServerTickScheduler;getScheduledTicks(Lnet/minecraft/util/math/BlockBox;ZZ)Ljava/util/List;
-
transferTicksInBounds
@Nullable private List<ScheduledTick<T>> transferTicksInBounds(@Nullable List<ScheduledTick<T>> dst, Collection<ScheduledTick<T>> src, BlockBox bounds, boolean move)- Mappings:
Namespace Name Mixin selector official a
Lbuk;a(Ljava/util/List;Ljava/util/Collection;Lcwn;Z)Ljava/util/List;
intermediary method_20596
Lnet/minecraft/class_1949;method_20596(Ljava/util/List;Ljava/util/Collection;Lnet/minecraft/class_3341;Z)Ljava/util/List;
named transferTicksInBounds
Lnet/minecraft/server/world/ServerTickScheduler;transferTicksInBounds(Ljava/util/List;Ljava/util/Collection;Lnet/minecraft/util/math/BlockBox;Z)Ljava/util/List;
-
copyScheduledTicks
- Mappings:
Namespace Name Mixin selector official a
Lbuk;a(Lcwn;Lfx;)V
intermediary method_8666
Lnet/minecraft/class_1949;method_8666(Lnet/minecraft/class_3341;Lnet/minecraft/class_2338;)V
named copyScheduledTicks
Lnet/minecraft/server/world/ServerTickScheduler;copyScheduledTicks(Lnet/minecraft/util/math/BlockBox;Lnet/minecraft/util/math/BlockPos;)V
-
toTag
- Mappings:
Namespace Name Mixin selector official a
Lbuk;a(Lbta;)Lmw;
intermediary method_8669
Lnet/minecraft/class_1949;method_8669(Lnet/minecraft/class_1923;)Lnet/minecraft/class_2499;
named toTag
Lnet/minecraft/server/world/ServerTickScheduler;toTag(Lnet/minecraft/util/math/ChunkPos;)Lnet/minecraft/nbt/ListTag;
-
serializeScheduledTicks
private static <T> ListTag serializeScheduledTicks(Function<T,Identifier> identifierProvider, Iterable<ScheduledTick<T>> scheduledTicks, long time)- Mappings:
Namespace Name Mixin selector official a
Lbuk;a(Ljava/util/function/Function;Ljava/lang/Iterable;J)Lmw;
intermediary method_20469
Lnet/minecraft/class_1949;method_20469(Ljava/util/function/Function;Ljava/lang/Iterable;J)Lnet/minecraft/class_2499;
named serializeScheduledTicks
Lnet/minecraft/server/world/ServerTickScheduler;serializeScheduledTicks(Ljava/util/function/Function;Ljava/lang/Iterable;J)Lnet/minecraft/nbt/ListTag;
-
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
-
addScheduledTick
- Mappings:
Namespace Name Mixin selector official a
Lbuk;a(Lbuo;)V
intermediary method_20514
Lnet/minecraft/class_1949;method_20514(Lnet/minecraft/class_1954;)V
named addScheduledTick
Lnet/minecraft/server/world/ServerTickScheduler;addScheduledTick(Lnet/minecraft/world/ScheduledTick;)V
-
getTicks
public int getTicks()- Mappings:
Namespace Name Mixin selector official a
Lbuk;a()I
intermediary method_20825
Lnet/minecraft/class_1949;method_20825()I
named getTicks
Lnet/minecraft/server/world/ServerTickScheduler;getTicks()I
-