This commit is contained in:
IronApollo
2020-02-26 09:35:47 -05:00
15 changed files with 82 additions and 522 deletions

View File

@ -1,5 +1,6 @@
package com.boydti.fawe.beta.implementation.queue;
@FunctionalInterface
public interface Pool<T> {
T poll();
default boolean offer(T recycle) {

View File

@ -188,13 +188,13 @@ public class SingleThreadQueueExtent extends ExtentBatchProcessorHolder implemen
* Get a new IChunk from either the pool, or create a new one<br> + Initialize it at the
* coordinates
*
* @param X
* @param Z
* @param chunkX
* @param chunkZ
* @return IChunk
*/
private ChunkHolder poolOrCreate(int X, int Z) {
private ChunkHolder poolOrCreate(int chunkX, int chunkZ) {
ChunkHolder next = create(false);
next.init(this, X, Z);
next.init(this, chunkX, chunkZ);
return next;
}