Package rakama.worldtools.data

Examples of rakama.worldtools.data.Block


        }
    }
   
    public static void renderColumn(BlockCanvas canvas, int x, int z, int height, int maxY)
    {
        Block block = getBlock(height, maxY);       
        canvas.setBlock(x, height, z, block);

        Block fill = getFill(block)
        for(int y=0; y<height; y++)
            canvas.setBlock(x, y, z, fill);
       
        double waterLevel = getWaterLevel(maxY);       
        for(int y=height; y<waterLevel; y++)
View Full Code Here


                    {
                        u = i / (double)width;
                        v = j / (double)height;
                    }
                   
                    Block block = face.getBlockUV(u, v);
   
                    if(block == null || block.id == Block.AIR.id)
                        continue;

                    canvas.setBlock(x + i, y + j, z + k, block);
View Full Code Here

        if(split.length < 2)
            return null;
       
        try
        {
            Block block = Block.getBlock(split[0].trim());
            String hexstr = split[1].trim();
            return new Entry(block, hexstr);
        }
        catch(Exception e)
        {
View Full Code Here

        return getBlock(r, g, b);
    }
   
    public Block getBlock(int r, int g, int b)
    {
        Block closestBlock = null;
        double closestMatch = Double.POSITIVE_INFINITY;

        float[] hsv = new float[3];
        Color.RGBtoHSB(r,g,b,hsv);
View Full Code Here

        {
            for(int x=x0; x<=x1; x++)
            {
                for(int y=y0t; y<=y1t; y++)
                {
                    Block block = schema.getBlock(x-x0, y-y0, z-z0);
                   
                    if(block == null)
                        continue;

                    if(y-y0 >= 0 && y-y0 < Chunk.height)
View Full Code Here

        {
            for(int x=x0; x<=x1; x++)
            {
                for(int y=y0t; y<=y1t; y++)
                {
                    Block block = getBlock(x, y, z);

                    if(block == null)
                        continue;
                   
                    if(y-y0 >= 0 && y-y0 < Chunk.height)
View Full Code Here

TOP

Related Classes of rakama.worldtools.data.Block

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.