207208209210211212213214
public void addTileEntity(TileEntity e) { int x = e.getX(); int z = e.getZ(); Chunk chunk = manager.getChunk(x >> 4, z >> 4, true); chunk.addTileEntity(e); }
215216217218219220221222223224
public boolean removeEntity(Entity e) { int x = (int)e.getX(); int z = (int)e.getZ(); Chunk chunk = manager.getChunk(x >> 4, z >> 4); if(chunk == null) return false; return chunk.removeEntity(e); }