Package net.minecraft.world.server
Class ServerTickList<T>
java.lang.Object
net.minecraft.world.server.ServerTickList<T>
- All Implemented Interfaces:
ITickList<T>
-
Field Summary
Modifier and TypeFieldDescriptionprivate final List<NextTickListEntry<T>>
private final Queue<NextTickListEntry<T>>
private final ServerWorld
private final Consumer<NextTickListEntry<T>>
private final TreeSet<NextTickListEntry<T>>
private final Set<NextTickListEntry<T>>
private final Function<T,
ResourceLocation> -
Constructor Summary
ConstructorDescriptionServerTickList
(ServerWorld p_i231625_1_, Predicate<T> p_i231625_2_, Function<T, ResourceLocation> p_i231625_3_, Consumer<NextTickListEntry<T>> p_i231625_4_) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addTickData
(NextTickListEntry<T> p_219504_1_) void
copy
(MutableBoundingBox p_205368_1_, BlockPos p_205368_2_) private List<NextTickListEntry<T>>
fetchTicksInArea
(List<NextTickListEntry<T>> p_223187_1_, Collection<NextTickListEntry<T>> p_223187_2_, MutableBoundingBox p_223187_3_, boolean p_223187_4_) fetchTicksInArea
(MutableBoundingBox p_205366_1_, boolean p_205366_2_, boolean p_205366_3_) fetchTicksInChunk
(ChunkPos p_223188_1_, boolean p_223188_2_, boolean p_223188_3_) boolean
hasScheduledTick
(BlockPos p_205359_1_, T p_205359_2_) private static <T> ListNBT
saveTickList
(Function<T, ResourceLocation> p_219502_0_, Iterable<NextTickListEntry<T>> p_219502_1_, long p_219502_2_) void
scheduleTick
(BlockPos p_205362_1_, T p_205362_2_, int p_205362_3_, TickPriority p_205362_4_) int
size()
void
tick()
boolean
willTickThisTick
(BlockPos p_205361_1_, T p_205361_2_) 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.ITickList
scheduleTick
-
Field Details
-
ignore
-
toId
-
tickNextTickSet
-
tickNextTickList
-
level
-
currentlyTicking
-
alreadyTicked
-
ticker
-
-
Constructor Details
-
ServerTickList
public ServerTickList(ServerWorld p_i231625_1_, Predicate<T> p_i231625_2_, Function<T, ResourceLocation> p_i231625_3_, Consumer<NextTickListEntry<T>> p_i231625_4_)
-
-
Method Details
-
tick
public void tick() -
willTickThisTick
- Specified by:
willTickThisTick
in interfaceITickList<T>
-
fetchTicksInChunk
public List<NextTickListEntry<T>> fetchTicksInChunk(ChunkPos p_223188_1_, boolean p_223188_2_, boolean p_223188_3_) -
fetchTicksInArea
public List<NextTickListEntry<T>> fetchTicksInArea(MutableBoundingBox p_205366_1_, boolean p_205366_2_, boolean p_205366_3_) -
fetchTicksInArea
@Nullable private List<NextTickListEntry<T>> fetchTicksInArea(@Nullable List<NextTickListEntry<T>> p_223187_1_, Collection<NextTickListEntry<T>> p_223187_2_, MutableBoundingBox p_223187_3_, boolean p_223187_4_) -
copy
-
save
-
saveTickList
private static <T> ListNBT saveTickList(Function<T, ResourceLocation> p_219502_0_, Iterable<NextTickListEntry<T>> p_219502_1_, long p_219502_2_) -
hasScheduledTick
- Specified by:
hasScheduledTick
in interfaceITickList<T>
-
scheduleTick
public void scheduleTick(BlockPos p_205362_1_, T p_205362_2_, int p_205362_3_, TickPriority p_205362_4_) - Specified by:
scheduleTick
in interfaceITickList<T>
-
addTickData
-
size
public int size()
-