Package net.minecraft.entity.item

Examples of net.minecraft.entity.item.EntityFallingBlock


        int y = pos.blockY;
        int z = pos.blockZ;
        Block block = entity.worldObj.getBlock(x, y, z);
        Block blockBelow = entity.worldObj.getBlock(x, y - 1, z);
        if(blockBelow.isAir(entity.worldObj, x, y - 1, z) && block.getBlockHardness(entity.worldObj, x, y, z) != -1 && entity.worldObj.getTileEntity(x, y, z) == null) {
          EntityFallingBlock falling = new EntityFallingBlock(entity.worldObj, x + 0.5, y + 0.5, z + 0.5, block, entity.worldObj.getBlockMetadata(x, y, z));
          if(!entity.worldObj.isRemote)
            entity.worldObj.spawnEntityInWorld(falling);
        }
      }
      break;
View Full Code Here


        if (canFallBelow(par1World, x, y - 1, z) && y >= 0) {
            byte var8 = 32;

            if (!BlockSand.fallInstantly && par1World.checkChunksExist(x - var8, y - var8, z - var8, x + var8, y + var8, z + var8)) {
                if (!par1World.isRemote) {
                    EntityFallingBlock entity = new EntityFallingBlock(par1World, (double) ((float) x + 0.5F), (double) ((float) y + 0.5F), (double) ((float) z + 0.5F), BlockCube.getBlock(), EnumCube.CRUSHED_OBSIDIAN.ordinal());
                    par1World.spawnEntityInWorld(entity);
                }
            } else {
                par1World.setBlockToAir(x, y, z);
View Full Code Here

            default:
                vec0 = speed;
                break;
            }

            EntityFallingBlock entityfallingsand = new EntityFallingBlock(par1World, (double) ((float) par2 + 0.5F), (double) ((float) par3 + 2F), (double) ((float) par4 + 0.5F), BlockUtils.getBlockFromItemStack(par5ItemStack), par5ItemStack.getItemDamage());
            entityfallingsand.preventEntitySpawning = false;
            entityfallingsand.ticksExisted = 2;
            entityfallingsand.setVelocity(vec0, vec1, vec2);
            par1World.spawnEntityInWorld(entityfallingsand);
        }
    }
View Full Code Here

TOP

Related Classes of net.minecraft.entity.item.EntityFallingBlock

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.