public BlockState[] getTileEntities() { int index = 0; net.minecraft.server.Chunk chunk = getHandle(); BlockState[] entities = new BlockState[chunk.tileEntities.size()]; for (Object obj : chunk.tileEntities.keySet().toArray()) { if (!(obj instanceof ChunkPosition)) { continue; } ChunkPosition position = (ChunkPosition) obj; entities[index++] = worldServer.getWorld().getBlockAt(position.x + (chunk.locX << 4), position.y, position.z + (chunk.locZ << 4)).getState(); } return entities; }
public BlockState[] getTileEntities() { int index = 0; net.minecraft.server.Chunk chunk = getHandle(); BlockState[] entities = new BlockState[chunk.tileEntities.size()]; for (Object obj : chunk.tileEntities.keySet().toArray()) { if (!(obj instanceof ChunkPosition)) { continue; } ChunkPosition position = (ChunkPosition) obj; entities[index++] = worldServer.getWorld().getBlockAt(position.x + (chunk.x << 4), position.y, position.z + (chunk.z << 4)).getState(); } return entities; }
public ChunkPosition findNearestMapFeature(World world, String string, int i, int i1, int i2) { return provider.findNearestMapFeature(world, string, i, i1, i2); }
public ChunkPosition findNearestMapFeature(World world, String type, int x, int y, int z) { return "Stronghold".equals(type) && this.strongholdGen != null ? this.strongholdGen.getNearestGeneratedFeature(world, x, y, z) : null; }