Re-add wrongly removed method

This commit is contained in:
dordsor21 2022-06-16 15:53:14 +01:00
parent 94925323e8
commit 6187569086
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -61,6 +61,22 @@ public abstract class QueueCoordinator {
PlotSquared.platform().injector().injectMembers(this); PlotSquared.platform().injector().injectMembers(this);
} }
/**
* Get a {@link ZeroedDelegateScopedQueueCoordinator} limited to the chunk at the specific chunk Coordinates
*
* @param x chunk x coordinate
* @param z chunk z coordinate
* @return a new {@link ZeroedDelegateScopedQueueCoordinator}
* @since TODO
*/
public ZeroedDelegateScopedQueueCoordinator getForChunk(int x, int z, int minY, int maxY) {
int bx = x << 4;
int bz = z << 4;
return new ZeroedDelegateScopedQueueCoordinator(this, Location.at(getWorld().getName(), bx, minY, bz),
Location.at(getWorld().getName(), bx + 15, maxY, bz + 15)
);
}
/** /**
* Get the size of the queue in chunks * Get the size of the queue in chunks
* *