Class EntityFX

java.lang.Object
net.minecraft.src.Entity
net.minecraft.src.EntityFX
Direct Known Subclasses:
CindersFX, EntityAuraFX, EntityBreakingFX, EntityBubbleFX, EntityCloudFX, EntityCrit2FX, EntityCritFX, EntityDiggingFX, EntityDropParticleFX, EntityEnchantmentTableParticleFX, EntityExplodeFX, EntityFireworkOverlayFX, EntityFireworkSparkFX, EntityFireworkStarterFX, EntityFlameFX, EntityFootStepFX, EntityHeartFX, EntityHugeExplodeFX, EntityLargeExplodeFX, EntityLavaFX, EntityNoteFX, EntityPickupFX, EntityPortalFX, EntityRainFX, EntityReddustFX, EntitySmokeFX, EntitySnowShovelFX, EntitySpellParticleFX, EntitySuspendFX, SmallFlameFX, WhiteSmokeFX

@Environment(CLIENT) public class EntityFX extends Entity
  • Field Details

    • particleTextureIndexX

      public int particleTextureIndexX
    • particleTextureIndexY

      public int particleTextureIndexY
    • particleTextureJitterX

      public float particleTextureJitterX
    • particleTextureJitterY

      public float particleTextureJitterY
    • particleAge

      public int particleAge
    • particleMaxAge

      public int particleMaxAge
    • particleScale

      public float particleScale
    • particleGravity

      public float particleGravity
    • particleRed

      public float particleRed
      The red amount of color. Used as a percentage, 1.0 = 255 and 0.0 = 0.
    • particleGreen

      public float particleGreen
      The green amount of color. Used as a percentage, 1.0 = 255 and 0.0 = 0.
    • particleBlue

      public float particleBlue
      The blue amount of color. Used as a percentage, 1.0 = 255 and 0.0 = 0.
    • particleAlpha

      public float particleAlpha
      Particle alpha
    • particleIcon

      public Icon particleIcon
      The icon field from which the given particle pulls its texture.
    • interpPosX

      public static double interpPosX
    • interpPosY

      public static double interpPosY
    • interpPosZ

      public static double interpPosZ
  • Constructor Details

    • EntityFX

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

      public EntityFX(World par1World, double par2, double par4, double par6, double par8, double par10, double par12)
  • Method Details

    • multiplyVelocity

      public EntityFX multiplyVelocity(float par1)
    • multipleParticleScaleBy

      public EntityFX multipleParticleScaleBy(float par1)
    • setRBGColorF

      public void setRBGColorF(float par1, float par2, float par3)
    • setAlphaF

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

      public float getRedColorF()
    • getGreenColorF

      public float getGreenColorF()
    • getBlueColorF

      public float getBlueColorF()
    • 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(Tessellator par1Tessellator, float par2, float par3, float par4, float par5, float par6, float par7)
    • getFXLayer

      public int getFXLayer()
    • 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
    • setParticleIcon

      public void setParticleIcon(Icon par1Icon)
    • setParticleTextureIndex

      public void setParticleTextureIndex(int par1)
      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 String toString()
      Overrides:
      toString in class Entity