Lambda's and References and Cleanups! Oh My!

This commit is contained in:
matt
2019-03-27 12:17:05 -04:00
parent 1424998327
commit acc8eb0a99
12 changed files with 291 additions and 462 deletions

View File

@ -5,8 +5,8 @@ import org.bukkit.World;
public abstract class PaperChunkCallback {
public PaperChunkCallback(World world, int x, int z) {
world.getChunkAtAsync(x, z, chunk -> PaperChunkCallback.this.onLoad(chunk));
world.getChunkAtAsync(x, z, PaperChunkCallback.this::onLoad);
}
public abstract void onLoad(Chunk chunk);
}
}