Package rakama.worldtools.util

Examples of rakama.worldtools.util.NibbleArray


    {
        super(-1, -1);
       
        tempLights = new NibbleArray[num_sections];
        for(int i=0; i<num_sections; i++)
            tempLights[i] = new NibbleArray(Section.volume);
    }
View Full Code Here


    public Section(int y)
    {
        this.y = y;

        blockid = new byte[volume];
        metadata = new NibbleArray(volume);
        blocklight = new NibbleArray(volume);
        skylight = new NibbleArray(volume);
    }
View Full Code Here

        ByteArrayTag tagSkylight = (ByteArrayTag) tag.get("SkyLight");
        ByteArrayTag tagBlocklight = (ByteArrayTag) tag.get("BlockLight");

        int y = tagY.data;

        NibbleArray metadata = new NibbleArray(tagMetadata.data);
        NibbleArray skylight = new NibbleArray(tagSkylight.data);
        NibbleArray blocklight = new NibbleArray(tagBlocklight.data);

        return new Section(y, tagBlockid.data, metadata, blocklight, skylight);
    }
View Full Code Here

TOP

Related Classes of rakama.worldtools.util.NibbleArray

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.