Package appeng.entity

Examples of appeng.entity.EntityTinyTNTPrimed


    EnumFacing enumfacing = BlockDispenser.func_149937_b( dispenser.getBlockMetadata() );
    World world = dispenser.getWorld();
    int i = dispenser.getXInt() + enumfacing.getFrontOffsetX();
    int j = dispenser.getYInt() + enumfacing.getFrontOffsetY();
    int k = dispenser.getZInt() + enumfacing.getFrontOffsetZ();
    EntityTinyTNTPrimed primedTinyTNTEntity = new EntityTinyTNTPrimed( world, i + 0.5F, j + 0.5F,
        k + 0.5F, null );
    world.spawnEntityInWorld( primedTinyTNTEntity );
    --dispensedItem.stackSize;
    return dispensedItem;
  }
View Full Code Here


  @Override
  public void onBlockDestroyedByExplosion(World w, int x, int y, int z, Explosion exp)
  {
    if ( !w.isRemote )
    {
      EntityTinyTNTPrimed primedTinyTNTEntity = new EntityTinyTNTPrimed( w, x + 0.5F, y + 0.5F, z + 0.5F, exp.getExplosivePlacedBy() );
      primedTinyTNTEntity.fuse = w.rand.nextInt( primedTinyTNTEntity.fuse / 4 ) + primedTinyTNTEntity.fuse / 8;
      w.spawnEntityInWorld( primedTinyTNTEntity );
    }
  }
View Full Code Here

  public void startFuse(World w, int x, int y, int z, EntityLivingBase igniter)
  {
    if ( !w.isRemote )
    {
      EntityTinyTNTPrimed primedTinyTNTEntity = new EntityTinyTNTPrimed( w, x + 0.5F, y + 0.5F, z + 0.5F, igniter );
      w.spawnEntityInWorld( primedTinyTNTEntity );
      w.playSoundAtEntity( primedTinyTNTEntity, "game.tnt.primed", 1.0F, 1.0F );
    }
  }
View Full Code Here

TOP

Related Classes of appeng.entity.EntityTinyTNTPrimed

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.