Class EntityFX

    • Field Detail

      • particleTextureIndexX

        protected int particleTextureIndexX
      • particleTextureIndexY

        protected int particleTextureIndexY
      • particleTextureJitterX

        protected float particleTextureJitterX
      • particleTextureJitterY

        protected float particleTextureJitterY
      • particleAge

        protected int particleAge
      • particleMaxAge

        protected int particleMaxAge
      • particleScale

        protected float particleScale
      • particleGravity

        protected float particleGravity
      • particleRed

        protected float particleRed
      • particleGreen

        protected float particleGreen
      • particleBlue

        protected float particleBlue
      • particleAlpha

        protected float particleAlpha
      • interpPosX

        public static double interpPosX
      • interpPosY

        public static double interpPosY
      • interpPosZ

        public static double interpPosZ
    • Constructor Detail

      • EntityFX

        protected EntityFX​(World worldIn,
                           double posXIn,
                           double posYIn,
                           double posZIn)
      • EntityFX

        public EntityFX​(World worldIn,
                        double xCoordIn,
                        double yCoordIn,
                        double zCoordIn,
                        double xSpeedIn,
                        double ySpeedIn,
                        double zSpeedIn)
    • Method Detail

      • multiplyVelocity

        public EntityFX multiplyVelocity​(float multiplier)
      • multipleParticleScaleBy

        public EntityFX multipleParticleScaleBy​(float parFloat1)
      • setRBGColorF

        public void setRBGColorF​(float particleRedIn,
                                 float particleGreenIn,
                                 float particleBlueIn)
      • setAlphaF

        public void setAlphaF​(float alpha)
        + Sets the particle alpha (float)
      • getRedColorF

        public float getRedColorF()
      • getGreenColorF

        public float getGreenColorF()
      • getBlueColorF

        public float getBlueColorF()
      • getAlpha

        public float getAlpha()
      • canTriggerWalking

        protected boolean canTriggerWalking()
        + returns if this entity triggers Block.onEntityWalking on the blocks they walk on. used for spiders and wolves to prevent them from trampling crops
        Overrides:
        canTriggerWalking in class Entity
      • entityInit

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

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

        public void renderParticle​(WorldRenderer worldrenderer,
                                   Entity var2,
                                   float f,
                                   float f1,
                                   float f2,
                                   float f3,
                                   float f4,
                                   float f5)
        + Renders the particle
      • renderAccelerated

        public boolean renderAccelerated​(IAcceleratedParticleEngine accelerator,
                                         Entity var2,
                                         float f,
                                         float f1,
                                         float f2,
                                         float f3,
                                         float f4,
                                         float f5)
      • getFXLayer

        public int getFXLayer()
      • writeEntityToNBT

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

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

        public void setParticleTextureIndex​(int particleTextureIndex)
        + Public method to set private field particleTextureIndex.
      • nextTextureIndexX

        public void nextTextureIndexX()
      • canAttackWithItem

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

        public java.lang.String toString()
        Overrides:
        toString in class Entity