Package net.minecraft.world.level
Class ServerTickList<T>
java.lang.Object
net.minecraft.world.level.ServerTickList<T>
- All Implemented Interfaces:
TickList<T>
-
Field Summary
Modifier and TypeFieldDescriptionprivate List<TickNextTickData<T>>
private Queue<TickNextTickData<T>>
private ServerLevel
static int
private Consumer<TickNextTickData<T>>
private Set<TickNextTickData<T>>
private Set<TickNextTickData<T>>
private Function<T,ResourceLocation>
-
Constructor Summary
ConstructorDescriptionServerTickList(ServerLevel p_47216_, Predicate<T> p_47217_, Function<T,ResourceLocation> p_47218_, Consumer<TickNextTickData<T>> p_47219_)
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
addTickData(TickNextTickData<T> p_47228_)
void
copy(BoundingBox p_47230_, BlockPos p_47231_)
private List<TickNextTickData<T>>
fetchTicksInArea(List<TickNextTickData<T>> p_47245_, Collection<TickNextTickData<T>> p_47246_, BoundingBox p_47247_, boolean p_47248_)
fetchTicksInArea(BoundingBox p_47233_, boolean p_47234_, boolean p_47235_)
fetchTicksInChunk(ChunkPos p_47224_, boolean p_47225_, boolean p_47226_)
boolean
hasScheduledTick(BlockPos p_47237_, T p_47238_)
private static <T> ListTag
saveTickList(Function<T,ResourceLocation> p_47250_, Iterable<TickNextTickData<T>> p_47251_, long p_47252_)
void
scheduleTick(BlockPos p_47240_, T p_47241_, int p_47242_, TickPriority p_47243_)
int
size()
void
tick()
boolean
willTickThisTick(BlockPos p_47255_, T p_47256_)
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.level.TickList
scheduleTick
-
Field Details
-
MAX_TICK_BLOCKS_PER_TICK
public static final int MAX_TICK_BLOCKS_PER_TICK- See Also:
- Constant Field Values
-
ignore
-
toId
-
tickNextTickSet
-
tickNextTickList
-
level
-
currentlyTicking
-
alreadyTicked
-
ticker
-
-
Constructor Details
-
ServerTickList
public ServerTickList(ServerLevel p_47216_, Predicate<T> p_47217_, Function<T,ResourceLocation> p_47218_, Consumer<TickNextTickData<T>> p_47219_)
-
-
Method Details
-
tick
public void tick() -
willTickThisTick
- Specified by:
willTickThisTick
in interfaceTickList<T>
-
fetchTicksInChunk
public List<TickNextTickData<T>> fetchTicksInChunk(ChunkPos p_47224_, boolean p_47225_, boolean p_47226_) -
fetchTicksInArea
public List<TickNextTickData<T>> fetchTicksInArea(BoundingBox p_47233_, boolean p_47234_, boolean p_47235_) -
fetchTicksInArea
@Nullable private List<TickNextTickData<T>> fetchTicksInArea(@Nullable List<TickNextTickData<T>> p_47245_, Collection<TickNextTickData<T>> p_47246_, BoundingBox p_47247_, boolean p_47248_) -
copy
-
save
-
saveTickList
private static <T> ListTag saveTickList(Function<T,ResourceLocation> p_47250_, Iterable<TickNextTickData<T>> p_47251_, long p_47252_) -
hasScheduledTick
- Specified by:
hasScheduledTick
in interfaceTickList<T>
-
scheduleTick
- Specified by:
scheduleTick
in interfaceTickList<T>
-
addTickData
-
size
public int size()
-