Package org.spout.vanilla.util.explosion

Examples of org.spout.vanilla.util.explosion.ExplosionModel.execute()


  @Override
  public void onTick(float dt) {
    pulse(dt);
    if (getFuse() <= 0) {
      ExplosionModel explosion = new ExplosionModelSpherical();
      explosion.execute(holder.getPhysics().getPosition(), getExplosionSize(), makesFire(), VanillaMaterials.TNT.toCause(holder.getPhysics().getPosition()));
      holder.remove();
    }
  }
}
View Full Code Here


   */
  public void create(Block footBlock, BlockFace facing) {
    Block headBlock = footBlock.translate(facing);
    if (headBlock.getWorld().getGenerator() instanceof NetherGenerator) {
      ExplosionModel explosion = new ExplosionModelSpherical();
      explosion.execute(headBlock.getPosition(), NETHER_EXPLOSION_SIZE, true, toCause(footBlock));
    } else {
      footBlock.setMaterial(this, 0x0, toCause(footBlock));
      headBlock.setMaterial(this, 0x8, toCause(footBlock));
      setFacing(footBlock, facing);
      setFacing(headBlock, facing);
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.