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

项目:CraftBukkit    文件:CraftChunk.java   
public CraftChunk(net.minecraft.server.Chunk chunk) {
    if (!(chunk instanceof EmptyChunk)) {
        this.weakChunk = new WeakReference<net.minecraft.server.Chunk>(chunk);
    }

    worldServer = (WorldServer) getHandle().world;
    x = getHandle().locX;
    z = getHandle().locZ;
}
项目:CraftBukkit    文件:CraftChunk.java   
public net.minecraft.server.Chunk getHandle() {
    net.minecraft.server.Chunk c = weakChunk.get();

    if (c == null) {
        c = worldServer.getChunkAt(x, z);

        if (!(c instanceof EmptyChunk)) {
            weakChunk = new WeakReference<net.minecraft.server.Chunk>(c);
        }
    }

    return c;
}
项目:Almura-Server    文件:CraftChunk.java   
public CraftChunk(net.minecraft.server.Chunk chunk) {
    if (!(chunk instanceof EmptyChunk)) {
        this.weakChunk = new WeakReference<net.minecraft.server.Chunk>(chunk);
    }

    worldServer = (WorldServer) getHandle().world;
    x = getHandle().x;
    z = getHandle().z;
}
项目:Almura-Server    文件:CraftChunk.java   
public net.minecraft.server.Chunk getHandle() {
    net.minecraft.server.Chunk c = weakChunk.get();

    if (c == null) {
        c = worldServer.getChunkAt(x, z);

        if (!(c instanceof EmptyChunk)) {
            weakChunk = new WeakReference<net.minecraft.server.Chunk>(c);
        }
    }

    return c;
}
项目:Tweakkit-Server    文件:CraftChunk.java   
public CraftChunk(net.minecraft.server.Chunk chunk) {
    if (!(chunk instanceof EmptyChunk)) {
        this.weakChunk = new WeakReference<net.minecraft.server.Chunk>(chunk);
    }

    worldServer = (WorldServer) getHandle().world;
    x = getHandle().locX;
    z = getHandle().locZ;
}
项目:Tweakkit-Server    文件:CraftChunk.java   
public net.minecraft.server.Chunk getHandle() {
    net.minecraft.server.Chunk c = weakChunk.get();

    if (c == null) {
        c = worldServer.getChunkAt(x, z);

        if (!(c instanceof EmptyChunk)) {
            weakChunk = new WeakReference<net.minecraft.server.Chunk>(c);
        }
    }

    return c;
}
项目:Craft-city    文件:CraftChunk.java   
public CraftChunk(net.minecraft.server.Chunk chunk) {
    if (!(chunk instanceof EmptyChunk)) {
        this.weakChunk = new WeakReference<net.minecraft.server.Chunk>(chunk);
    }

    worldServer = (WorldServer) getHandle().world;
    x = getHandle().x;
    z = getHandle().z;
}
项目:Craft-city    文件:CraftChunk.java   
public net.minecraft.server.Chunk getHandle() {
    net.minecraft.server.Chunk c = weakChunk.get();

    if (c == null) {
        c = worldServer.getChunkAt(x, z);

        if (!(c instanceof EmptyChunk)) {
            weakChunk = new WeakReference<net.minecraft.server.Chunk>(c);
        }
    }

    return c;
}