mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 07:06:44 +01:00
Re-add wrongly removed method
This commit is contained in:
parent
94925323e8
commit
6187569086
@ -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
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user