Class EntityThrowable

java.lang.Object
net.minecraft.src.Entity
net.minecraft.src.EntityThrowable
All Implemented Interfaces:
IProjectile
Direct Known Subclasses:
EntityEgg, EntityEnderPearl, EntityExpBottle, EntityPotion, EntitySnowball, SpiderWebEntity, UrnEntity

public abstract class EntityThrowable extends Entity implements IProjectile
  • Field Details

    • inGround

      protected boolean inGround
    • throwableShake

      public int throwableShake
  • Constructor Details

    • EntityThrowable

      public EntityThrowable(World par1World)
    • EntityThrowable

      public EntityThrowable(World par1World, EntityLivingBase par2EntityLivingBase)
    • EntityThrowable

      public EntityThrowable(World par1World, double par2, double par4, double par6)
  • Method Details

    • entityInit

      protected void entityInit()
      Specified by:
      entityInit in class Entity
    • isInRangeToRenderDist

      public boolean isInRangeToRenderDist(double par1)
      Checks if the entity is in range to render by using the past in distance and comparing it to its average edge length * 64 * renderDistanceWeight Args: distance
      Overrides:
      isInRangeToRenderDist in class Entity
    • func_70182_d

      protected float func_70182_d()
    • func_70183_g

      protected float func_70183_g()
    • setThrowableHeading

      public void setThrowableHeading(double par1, double par3, double par5, float par7, float par8)
      Similar to setArrowHeading, it's point the throwable entity to a x, y, z direction.
      Specified by:
      setThrowableHeading in interface IProjectile
    • setVelocity

      public void setVelocity(double par1, double par3, double par5)
      Sets the velocity to the args. Args: x, y, z
      Overrides:
      setVelocity in class Entity
    • onUpdate

      public void onUpdate()
      Called to update the entity's position/logic.
      Overrides:
      onUpdate in class Entity
    • getGravityVelocity

      protected float getGravityVelocity()
      Gets the amount of gravity to apply to the thrown entity with each tick.
    • onImpact

      protected abstract void onImpact(MovingObjectPosition var1)
      Called when this EntityThrowable hits a block or entity.
    • writeEntityToNBT

      public void writeEntityToNBT(NBTTagCompound par1NBTTagCompound)
      (abstract) Protected helper method to write subclass entity data to NBT.
      Specified by:
      writeEntityToNBT in class Entity
    • readEntityFromNBT

      public void readEntityFromNBT(NBTTagCompound par1NBTTagCompound)
      (abstract) Protected helper method to read subclass entity data from NBT.
      Specified by:
      readEntityFromNBT in class Entity
    • getShadowSize

      public float getShadowSize()
      Overrides:
      getShadowSize in class Entity
    • getThrower

      public EntityLivingBase getThrower()
    • setThrower

      protected void setThrower(EntityLiving throwerParam)