Advertisement
Guest User

Untitled

a guest
Dec 10th, 2014
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. package DSFoFG.entities;
  2.  
  3. import net.minecraft.entity.EntityLivingBase;
  4. import net.minecraft.entity.monster.EntityBlaze;
  5. import net.minecraft.entity.projectile.EntityThrowable;
  6. import net.minecraft.util.DamageSource;
  7. import net.minecraft.util.MovingObjectPosition;
  8. import net.minecraft.world.World;
  9.  
  10. public class powerPack extends EntityThrowable
  11. {
  12. private static final String __OBFID = "CL_00001722";
  13.  
  14. public powerPack(World p_i1773_1_)
  15. {
  16. super(p_i1773_1_);
  17. }
  18.  
  19. public powerPack(World p_i1774_1_, EntityLivingBase p_i1774_2_)
  20. {
  21. super(p_i1774_1_, p_i1774_2_);
  22. }
  23.  
  24. public powerPack(World p_i1775_1_, double p_i1775_2_, double p_i1775_4_, double p_i1775_6_)
  25. {
  26. super(p_i1775_1_, p_i1775_2_, p_i1775_4_, p_i1775_6_);
  27. }
  28.  
  29. /**
  30. * Called when this EntityThrowable hits a block or entity.
  31. */
  32. protected void onImpact(MovingObjectPosition p_70184_1_)
  33. {
  34. if (p_70184_1_.entityHit != null)
  35. {
  36. byte b0 = 12;
  37.  
  38.  
  39. p_70184_1_.entityHit.attackEntityFrom(DamageSource.causeThrownDamage(this, this.getThrower()), (float)b0);
  40. }
  41.  
  42. for (int i = 0; i < 8; ++i)
  43. {
  44. this.worldObj.spawnParticle("crit", this.posX, this.posY, this.posZ, 0.0D, 0.0D, 0.0D);
  45. }
  46.  
  47. if (!this.worldObj.isRemote)
  48. {
  49. this.setDead();
  50. }
  51.  
  52. }
  53. protected float getGravityVelocity()
  54. {
  55. return 0.0F;
  56. }
  57. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement