Class EntityFireworkRocket

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

public class EntityFireworkRocket extends Entity
  • Constructor Details

    • EntityFireworkRocket

      public EntityFireworkRocket(World par1World)
    • EntityFireworkRocket

      public EntityFireworkRocket(World par1World, double par2, double par4, double par6)
    • EntityFireworkRocket

      public EntityFireworkRocket(World par1World, double par2, double par4, double par6, ItemStack par8ItemStack)
  • 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
    • 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
    • handleHealthUpdate

      public void handleHealthUpdate(byte par1)
      Overrides:
      handleHealthUpdate 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
    • getBrightness

      public float getBrightness(float par1)
      Gets how bright this entity is.
      Overrides:
      getBrightness in class Entity
    • getBrightnessForRender

      public int getBrightnessForRender(float par1)
      Overrides:
      getBrightnessForRender in class Entity
    • canAttackWithItem

      public boolean canAttackWithItem()
      If returns false, the item will not inflict any damage against entities.
      Overrides:
      canAttackWithItem in class Entity