Class EntityItemFrame


public class EntityItemFrame extends EntityHanging
  • Constructor Details

    • EntityItemFrame

      public EntityItemFrame(World par1World)
    • EntityItemFrame

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

    • entityInit

      protected void entityInit()
      Overrides:
      entityInit 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
    • getDisplayedItem

      public ItemStack getDisplayedItem()
    • setDisplayedItem

      public void setDisplayedItem(ItemStack par1ItemStack)
    • getRotation

      public int getRotation()
      Return the rotation of the item currently on this frame.
    • setItemRotation

      public void setItemRotation(int par1)
    • 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