Hbm-s-Nuclear-Tech-GIT/com/hbm/entity/missile/EntityMissileBusterStrong.java

30 lines
902 B
Java

package com.hbm.entity.missile;
import com.hbm.entity.particle.EntitySmokeFX;
import com.hbm.explosion.ExplosionLarge;
import net.minecraft.init.Blocks;
import net.minecraft.world.World;
public class EntityMissileBusterStrong extends EntityMissileBaseAdvanced {
public EntityMissileBusterStrong(World p_i1582_1_) {
super(p_i1582_1_);
}
public EntityMissileBusterStrong(World world, float x, float y, float z, int a, int b) {
super(world, x, y, z, a, b);
}
@Override
public void onImpact() {
for(int i = 0; i < 20; i++)
{
this.worldObj.createExplosion(this, this.posX, this.posY - i, this.posZ, 7.5F, true);
}
ExplosionLarge.spawnParticles(worldObj, this.posX, this.posY, this.posZ, 8);
ExplosionLarge.spawnShrapnels(worldObj, this.posX, this.posY, this.posZ, 8);
ExplosionLarge.spawnRubble(worldObj, this.posX, this.posY, this.posZ, 8);
}
}