Class EntityFishHook

java.lang.Object
net.minecraft.src.Entity
net.minecraft.src.EntityFishHook

public class EntityFishHook extends Entity
  • Field Details

    • shake

      public int shake
    • angler

      public EntityPlayer angler
    • bobber

      public Entity bobber
      The entity that the fishing rod is connected to, if any. When you right click on the fishing rod and the hook falls on to an entity, this it that entity.
  • Constructor Details

    • EntityFishHook

      public EntityFishHook(World par1World)
    • EntityFishHook

      public EntityFishHook(World par1World, double par2, double par4, double par6, EntityPlayer par8EntityPlayer)
    • EntityFishHook

      public EntityFishHook(World par1World, EntityPlayer par2EntityPlayer)
    • EntityFishHook

      public EntityFishHook(World world, EntityPlayer player, boolean bIsBaited)
  • 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
    • calculateVelocity

      public void calculateVelocity(double par1, double par3, double par5, float par7, float par8)
    • setPositionAndRotation2

      public void setPositionAndRotation2(double par1, double par3, double par5, float par7, float par8, int par9)
      Sets the position and rotation. Only difference from the other one is no bounding on the rotation. Args: posX, posY, posZ, yaw, pitch
      Overrides:
      setPositionAndRotation2 in class Entity
    • 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
    • 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
    • catchFish

      public int catchFish()
    • setDead

      public void setDead()
      Will get destroyed next tick.
      Overrides:
      setDead in class Entity