Search in sources :

Example 1 with ThreadSky

use of icbm.classic.content.explosive.thread.ThreadSky in project ICBM-Classic by BuiltBrokenModding.

the class BlastBeam method doPreExplode.

/** Called before an explosion happens */
@Override
public void doPreExplode() {
    if (!this.world().isRemote) {
        this.world().createExplosion(this.exploder, position.x(), position.y(), position.z(), 4F, true);
        this.lightBeam = new EntityLightBeam(this.world(), position, 20 * 20, this.red, this.green, this.blue);
        this.world().spawnEntityInWorld(this.lightBeam);
        this.thread = new ThreadSky(this.position, (int) this.getRadius(), 50, this.exploder);
        this.thread.start();
    }
}
Also used : ThreadSky(icbm.classic.content.explosive.thread.ThreadSky) EntityLightBeam(icbm.classic.content.entity.EntityLightBeam)

Aggregations

EntityLightBeam (icbm.classic.content.entity.EntityLightBeam)1 ThreadSky (icbm.classic.content.explosive.thread.ThreadSky)1