CampfireIndex

public final class CampfireIndex

Campfires near a point, from the block entities of the loaded chunks around it. Each chunk's list is kept for the caller's search interval, on the pet clock (ticks), and shared by every pet, so a crowd of pets scans a chunk once per interval. Server thread only.

Functions

Link copied to clipboard
public static Block nearest(Location centre, double radius, int keepTicks, Predicate<Block> accepts)
The nearest campfire within the radius the filter accepts, or null.