Package mekanism.common.entity

Examples of mekanism.common.entity.EntityObsidianTNT


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


  public void explode(World world, int x, int y, int z)
  {
    if(!world.isRemote)
    {
      EntityObsidianTNT entity = new EntityObsidianTNT(world, x + 0.5F, y + 0.5F, z + 0.5F);
      world.spawnEntityInWorld(entity);
      world.playSoundAtEntity(entity, "random.fuse", 1.0F, 1.0F);
    }
  }
View Full Code Here

TOP

Related Classes of mekanism.common.entity.EntityObsidianTNT

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.