mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
56 lines
1.8 KiB
Java
56 lines
1.8 KiB
Java
package com.hbm.entity.grenade;
|
|
|
|
import com.hbm.entity.logic.EntityNukeExplosionAdvanced;
|
|
import com.hbm.entity.logic.EntityNukeExplosionMK3;
|
|
import com.hbm.entity.logic.EntityNukeExplosionMK4;
|
|
import com.hbm.explosion.ExplosionParticle;
|
|
import com.hbm.explosion.ExplosionParticleB;
|
|
import com.hbm.main.MainRegistry;
|
|
|
|
import net.minecraft.entity.EntityLivingBase;
|
|
import net.minecraft.world.World;
|
|
|
|
public class EntityGrenadeNuclear extends EntityGrenadeBase
|
|
{
|
|
private static final String __OBFID = "CL_00001722";
|
|
|
|
public EntityGrenadeNuclear(World p_i1773_1_)
|
|
{
|
|
super(p_i1773_1_);
|
|
}
|
|
|
|
public EntityGrenadeNuclear(World p_i1774_1_, EntityLivingBase p_i1774_2_)
|
|
{
|
|
super(p_i1774_1_, p_i1774_2_);
|
|
}
|
|
|
|
public EntityGrenadeNuclear(World p_i1775_1_, double p_i1775_2_, double p_i1775_4_, double p_i1775_6_)
|
|
{
|
|
super(p_i1775_1_, p_i1775_2_, p_i1775_4_, p_i1775_6_);
|
|
}
|
|
|
|
@Override
|
|
public void explode() {
|
|
|
|
if (!this.worldObj.isRemote)
|
|
{
|
|
this.setDead();
|
|
/*EntityNukeExplosionMK3 entity0 = new EntityNukeExplosionMK3(this.worldObj);
|
|
entity0.posX = this.posX;
|
|
entity0.posY = this.posY;
|
|
entity0.posZ = this.posZ;
|
|
entity0.destructionRange = MainRegistry.nukaRadius;
|
|
entity0.speed = 25;
|
|
entity0.coefficient = 10.0F;*/
|
|
|
|
this.worldObj.spawnEntityInWorld(EntityNukeExplosionMK4.statFac(worldObj, MainRegistry.nukaRadius, posX, posY, posZ));
|
|
if(rand.nextInt(100) == 0)
|
|
{
|
|
ExplosionParticleB.spawnMush(this.worldObj, (int)this.posX, (int)this.posY, (int)this.posZ);
|
|
} else {
|
|
ExplosionParticle.spawnMush(this.worldObj, (int)this.posX, (int)this.posY, (int)this.posZ);
|
|
}
|
|
}
|
|
}
|
|
}
|