Examples of canDropFromExplosion()


Examples of net.minecraft.block.Block.canDropFromExplosion()

                {
                    BreakEvent breakEvent = new BreakEvent(i, j, k, worldObj, block, worldObj.getBlockMetadata(i, j, k), player);

                    if(!breakEvent.isCanceled())
                    {
                        if (block.canDropFromExplosion(this))
                        {
                            block.dropBlockAsItemWithChance(worldObj, i, j, k, worldObj.getBlockMetadata(i, j, k), 1.0F / explosionSize, 0);
                        }

                        block.onBlockExploded(worldObj, i, j, k, this);
View Full Code Here

Examples of net.minecraft.block.Block.canDropFromExplosion()

              if ( strength > 0.01 )
              {
                if ( block.getMaterial() != Material.air )
                {
                  if ( block.canDropFromExplosion( ex ) )
                  {
                    block.dropBlockAsItemWithChance( this.worldObj, x, y, z, this.worldObj.getBlockMetadata( x, y, z ), 1.0F / 1.0f, 0 );
                  }

                  block.onBlockExploded( this.worldObj, x, y, z, ex );
View Full Code Here

Examples of net.minecraft.block.Block.canDropFromExplosion()

                if (l != Blocks.air)
                {
                    Block block = l;

                    if (block.canDropFromExplosion(this))
                    {
                        block.dropBlockAsItemWithChance(this.world, i, j, k, this.world.getBlockMetadata(i, j, k), 1.0F, 0);
                    }

                    block.onBlockExploded(this.world, i, j, k, this);
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.