Class EntityLeashKnot


public class EntityLeashKnot extends EntityHanging
  • Constructor Details

    • EntityLeashKnot

      public EntityLeashKnot(World par1World)
    • EntityLeashKnot

      public EntityLeashKnot(World par1World, int par2, int par3, int par4)
  • Method Details

    • entityInit

      protected void entityInit()
      Overrides:
      entityInit in class EntityHanging
    • setDirection

      public void setDirection(int par1)
      Overrides:
      setDirection in class EntityHanging
    • getWidthPixels

      public int getWidthPixels()
      Specified by:
      getWidthPixels in class EntityHanging
    • getHeightPixels

      public int getHeightPixels()
      Specified by:
      getHeightPixels in class EntityHanging
    • 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
    • onBroken

      public void onBroken(Entity par1Entity)
      Called when this entity is broken. Entity parameter may be null.
      Specified by:
      onBroken in class EntityHanging
    • writeToNBTOptional

      public boolean writeToNBTOptional(NBTTagCompound par1NBTTagCompound)
      Either write this entity to the NBT tag given and return true, or return false without doing anything. If this returns false the entity is not saved on disk. Ridden entities return false here as they are saved with their rider.
      Overrides:
      writeToNBTOptional in class Entity
    • writeEntityToNBT

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

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

      public boolean interactFirst(EntityPlayer par1EntityPlayer)
      First layer of player interaction
      Overrides:
      interactFirst in class Entity
    • onValidSurface

      public boolean onValidSurface()
      checks to make sure painting can be placed there
      Overrides:
      onValidSurface in class EntityHanging
    • func_110129_a

      public static EntityLeashKnot func_110129_a(World par0World, int par1, int par2, int par3)
    • getKnotForBlock

      public static EntityLeashKnot getKnotForBlock(World par0World, int par1, int par2, int par3)