mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
33 lines
874 B
Java
33 lines
874 B
Java
package com.hbm.entity.grenade;
|
|
|
|
import com.hbm.explosion.ExplosionChaos;
|
|
|
|
import net.minecraft.entity.EntityLivingBase;
|
|
import net.minecraft.world.World;
|
|
|
|
public class EntityGrenadeCloud extends EntityGrenadeBase {
|
|
|
|
public EntityGrenadeCloud(World p_i1773_1_) {
|
|
super(p_i1773_1_);
|
|
}
|
|
|
|
public EntityGrenadeCloud(World p_i1774_1_, EntityLivingBase p_i1774_2_) {
|
|
super(p_i1774_1_, p_i1774_2_);
|
|
}
|
|
|
|
public EntityGrenadeCloud(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();
|
|
|
|
this.worldObj.playAuxSFX(2002, (int)Math.round(this.posX), (int)Math.round(this.posY), (int)Math.round(this.posZ), 0);
|
|
ExplosionChaos.spawnPoisonCloud(worldObj, posX, posY, posZ, 250, 1.5, 1);
|
|
}
|
|
}
|
|
}
|