Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package DSFoFG.entities;
- import net.minecraft.entity.EntityLivingBase;
- import net.minecraft.entity.monster.EntityBlaze;
- import net.minecraft.entity.projectile.EntityThrowable;
- import net.minecraft.util.DamageSource;
- import net.minecraft.util.MovingObjectPosition;
- import net.minecraft.world.World;
- public class EntityTD extends EntityThrowable
- {
- private static final String __OBFID = "CL_00001722";
- public EntityTD(World p_i1773_1_)
- {
- super(p_i1773_1_);
- }
- public EntityTD(World p_i1774_1_, EntityLivingBase p_i1774_2_)
- {
- super(p_i1774_1_, p_i1774_2_);
- }
- public EntityTD(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_);
- }
- /**
- * Called when this EntityThrowable hits a block or entity.
- */
- protected void onImpact(MovingObjectPosition p_70184_1_)
- {
- if (p_70184_1_.entityHit != null)
- {
- byte b0 = 5;
- p_70184_1_.entityHit.attackEntityFrom(DamageSource.causeThrownDamage(this, this.getThrower()), (float)b0);
- }
- for (int i = 0; i < 8; ++i)
- {
- this.worldObj.spawnParticle("crit", this.posX, this.posY, this.posZ, 0.0D, 0.0D, 0.0D);
- }
- if (!this.worldObj.isRemote)
- {
- this.setDead();
- }
- this.worldObj.createExplosion(this, this.posX, this.posY, this.posZ, (float)2.0F, true);
- this.setDead();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement