Class EntityPotion

All Implemented Interfaces:
IProjectile

public class EntityPotion extends EntityThrowable
  • Constructor Details

    • EntityPotion

      public EntityPotion(World par1World)
    • EntityPotion

      public EntityPotion(World par1World, EntityLivingBase par2EntityLivingBase, int par3)
    • EntityPotion

      public EntityPotion(World par1World, EntityLivingBase par2EntityLivingBase, ItemStack par3ItemStack)
    • EntityPotion

      public EntityPotion(World par1World, double par2, double par4, double par6, int par8)
    • EntityPotion

      public EntityPotion(World par1World, double par2, double par4, double par6, ItemStack par8ItemStack)
  • Method Details

    • getGravityVelocity

      protected float getGravityVelocity()
      Gets the amount of gravity to apply to the thrown entity with each tick.
      Overrides:
      getGravityVelocity in class EntityThrowable
    • func_70182_d

      protected float func_70182_d()
      Overrides:
      func_70182_d in class EntityThrowable
    • func_70183_g

      protected float func_70183_g()
      Overrides:
      func_70183_g in class EntityThrowable
    • setPotionDamage

      public void setPotionDamage(int par1)
    • getPotionDamage

      public int getPotionDamage()
      Returns the damage value of the thrown potion that this EntityPotion represents.
    • onImpact

      protected void onImpact(MovingObjectPosition par1MovingObjectPosition)
      Called when this EntityThrowable hits a block or entity.
      Specified by:
      onImpact in class EntityThrowable
    • readEntityFromNBT

      public void readEntityFromNBT(NBTTagCompound par1NBTTagCompound)
      (abstract) Protected helper method to read subclass entity data from NBT.
      Overrides:
      readEntityFromNBT in class EntityThrowable
    • writeEntityToNBT

      public void writeEntityToNBT(NBTTagCompound par1NBTTagCompound)
      (abstract) Protected helper method to write subclass entity data to NBT.
      Overrides:
      writeEntityToNBT in class EntityThrowable