Java 类net.minecraft.server.ChunkPosition 实例源码

项目:CraftBukkit    文件:CraftChunk.java   
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;
}
项目:Almura-Server    文件:CraftChunk.java   
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;
}
项目:Tweakkit-Server    文件:CraftChunk.java   
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;
}
项目:Craft-city    文件:CraftChunk.java   
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;
}
项目:CraftBukkit    文件:NormalChunkGenerator.java   
public ChunkPosition findNearestMapFeature(World world, String string, int i, int i1, int i2) {
    return provider.findNearestMapFeature(world, string, i, i1, i2);
}
项目:CraftBukkit    文件:CustomChunkGenerator.java   
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;
}
项目:Almura-Server    文件:NormalChunkGenerator.java   
public ChunkPosition findNearestMapFeature(World world, String string, int i, int i1, int i2) {
    return provider.findNearestMapFeature(world, string, i, i1, i2);
}
项目:Almura-Server    文件:CustomChunkGenerator.java   
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;
}
项目:Tweakkit-Server    文件:NormalChunkGenerator.java   
public ChunkPosition findNearestMapFeature(World world, String string, int i, int i1, int i2) {
    return provider.findNearestMapFeature(world, string, i, i1, i2);
}
项目:Tweakkit-Server    文件:CustomChunkGenerator.java   
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;
}
项目:Craft-city    文件:NormalChunkGenerator.java   
public ChunkPosition findNearestMapFeature(World world, String string, int i, int i1, int i2) {
    return provider.findNearestMapFeature(world, string, i, i1, i2);
}
项目:Craft-city    文件:CustomChunkGenerator.java   
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;
}