Class EntityFireball

    • Field Detail

      • accelerationX

        public double accelerationX
      • accelerationY

        public double accelerationY
      • accelerationZ

        public double accelerationZ
    • Constructor Detail

      • EntityFireball

        public EntityFireball​(World worldIn)
      • EntityFireball

        public EntityFireball​(World worldIn,
                              double x,
                              double y,
                              double z,
                              double accelX,
                              double accelY,
                              double accelZ)
      • EntityFireball

        public EntityFireball​(World worldIn,
                              EntityLivingBase shooter,
                              double accelX,
                              double accelY,
                              double accelZ)
    • Method Detail

      • entityInit

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

        public boolean isInRangeToRenderDist​(double d0)
        + 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
      • onUpdate

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

        protected float getMotionFactor()
        + Return the motion factor for this projectile. The factor is multiplied by the original motion.
      • writeEntityToNBT

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

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

        public boolean canBeCollidedWith()
        + Returns true if other Entities should be prevented from moving through this Entity.
        Overrides:
        canBeCollidedWith in class Entity
      • attackEntityFrom

        public boolean attackEntityFrom​(DamageSource damagesource,
                                        float var2)
        + Called when the entity is attacked.
        Overrides:
        attackEntityFrom in class Entity
      • getBrightness

        public float getBrightness​(float var1)
        + Gets how bright this entity is.
        Overrides:
        getBrightness in class Entity