Examples of lightLevel()


Examples of com.flansmod.common.driveables.mechas.EntityMecha.lightLevel()

        {
          EntityMecha mecha = (EntityMecha)obj;
          int x = MathHelper.floor_double(mecha.posX);
          int y = MathHelper.floor_double(mecha.posY);
          int z = MathHelper.floor_double(mecha.posZ);
          if(mecha.lightLevel() > 0)
          {
            blockLightOverrides.add(new Vector3i(x, y, z));
            mc.theWorld.setLightValue(EnumSkyBlock.Block, x, y, z, Math.max(mc.theWorld.getBlockLightValue(x, y, z), mecha.lightLevel()));
            mc.theWorld.updateLightByType(EnumSkyBlock.Block, x + 1, y, z);
            mc.theWorld.updateLightByType(EnumSkyBlock.Block, x - 1, y + 1, z);
View Full Code Here

Examples of com.flansmod.common.driveables.mechas.EntityMecha.lightLevel()

          int y = MathHelper.floor_double(mecha.posY);
          int z = MathHelper.floor_double(mecha.posZ);
          if(mecha.lightLevel() > 0)
          {
            blockLightOverrides.add(new Vector3i(x, y, z));
            mc.theWorld.setLightValue(EnumSkyBlock.Block, x, y, z, Math.max(mc.theWorld.getBlockLightValue(x, y, z), mecha.lightLevel()));
            mc.theWorld.updateLightByType(EnumSkyBlock.Block, x + 1, y, z);
            mc.theWorld.updateLightByType(EnumSkyBlock.Block, x - 1, y + 1, z);
            mc.theWorld.updateLightByType(EnumSkyBlock.Block, x, y + 1, z);
            mc.theWorld.updateLightByType(EnumSkyBlock.Block, x, y - 1, z);
            mc.theWorld.updateLightByType(EnumSkyBlock.Block, x, y, z + 1);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.