Package net.anzix.fsz.voxelworld

Examples of net.anzix.fsz.voxelworld.AbstractBlockPosition


    @Override
    public synchronized void examineExistingBlocks(AbstractBlockPosition cameraPosition) {
        for (AbstractBlock block : blocks)
        {
            LayerBlock layerBlock = (LayerBlock)block;
            AbstractBlockPosition pos = block.getPosition();
           
            if (layerBlock.getStatus() == AbstractBlock.BlockStatus.HIDDEN || layerBlock.getStatus() == AbstractBlock.BlockStatus.EMPTY) {

                if (!pos.isInRange(cameraPosition,exitRange)) {
                    removeBlockFromPool(layerBlock);              
                }
            }
        }  
    }
View Full Code Here

TOP

Related Classes of net.anzix.fsz.voxelworld.AbstractBlockPosition

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.