Package net.minecraft.world.level.chunk.storage

Examples of net.minecraft.world.level.chunk.storage.RegionFile


        if(debug && info.getFile().exists())
            log("LOAD_REGION " + info.getRegionCoordinate().x + " " + info.getRegionCoordinate().z);
        else if(debug && !info.getFile().exists())
            log("NEW_REGION " + info.getRegionCoordinate().x + " " + info.getRegionCoordinate().z);
       
        info.setCached(new RegionFile(info.getFile()));
    }
View Full Code Here


        dos.close();
    }

    protected DataInputStream getDataInputStream(int x, int z) throws IOException
    {
        RegionFile region = regionManager.getRegionFile(x >> 5, z >> 5);

        if(region == null)
            return null;

        return region.getChunkDataInputStream(x & 0x1F, z & 0x1F);
    }
View Full Code Here

        return region.getChunkDataInputStream(x & 0x1F, z & 0x1F);
    }

    protected DataOutputStream getDataOutputStream(int x, int z) throws IOException
    {
        RegionFile region = regionManager.getRegionFile(x >> 5, z >> 5);

        if(region == null)
        {
            region = createRegionFile(x >> 5, z >> 5);
            if(region == null)
                throw new IOException();
        }

        return region.getChunkDataOutputStream(x & 0x1F, z & 0x1F);
    }
View Full Code Here

TOP

Related Classes of net.minecraft.world.level.chunk.storage.RegionFile

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.