Package org.spout.vanilla.util.explosion

Examples of org.spout.vanilla.util.explosion.ExplosionModelSpherical


  @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


   * @param facing of the bed
   */
  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

Related Classes of org.spout.vanilla.util.explosion.ExplosionModelSpherical

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.