Package Hexel.blocks.types

Examples of Hexel.blocks.types.BlockEmpty


      Vector3i tmp = new Vector3i();
      if (thingBridge.engine.getAmbientLight() > .75){
        for (Vector3i v : blocksIntersectingThing){
          Block b = thingBridge.engine.chunks.getBlock(v.x, v.y, v.z, tmp, (Chunk)null);
          if (b instanceof BlockEmpty){
            BlockEmpty be = (BlockEmpty)b;
            double lightLevel = thingBridge.engine.getAmbientLight() - be.naturalLightLevel*1.0/BlockTransparent.MAX_LIGHT_LEVEL;
            if (lightLevel > .9){
              this.health -= .1;
              this.hurt = 10;
              break;
View Full Code Here

TOP

Related Classes of Hexel.blocks.types.BlockEmpty

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.