1
0
Fork 0
mirror of https://github.com/PaperMC/Paper.git synced 2025-02-16 18:31:53 +01:00

Location.isChunkLoaded() API

This commit is contained in:
Aikar 2018-04-30 19:27:31 -04:00
parent f8d5489645
commit 623c56ab78

View file

@ -533,6 +533,7 @@ public class Location implements Cloneable, ConfigurationSerializable, io.paperm
return this;
}
public boolean isChunkLoaded() { return this.getWorld().isChunkLoaded(locToBlock(x) >> 4, locToBlock(z) >> 4); } // Paper
@Override
public boolean equals(Object obj) {
if (obj == null) {