java.lang.Object
net.minecraft.client.particle.Particle
net.minecraft.client.particle.SingleQuadParticle
net.minecraft.client.particle.TextureSheetParticle
net.minecraft.client.particle.RisingParticle
com.pixelmonmod.pixelmon.client.particle.particles.flame.FlameParticle

public class FlameParticle extends net.minecraft.client.particle.RisingParticle
Based on TheGreyGhost's MinecraftByExample Custom Particle to illustrate how to add a Particle with your own texture and movement/animation behaviour A good vanilla example is PoofParticle
  • Field Summary

    Fields inherited from class net.minecraft.client.particle.TextureSheetParticle

    sprite

    Fields inherited from class net.minecraft.client.particle.SingleQuadParticle

    quadSize

    Fields inherited from class net.minecraft.client.particle.Particle

    age, alpha, bb, bbHeight, bbWidth, bCol, friction, gCol, gravity, hasPhysics, INITIAL_AABB, level, lifetime, MAXIMUM_COLLISION_VELOCITY_SQUARED, onGround, oRoll, random, rCol, removed, roll, speedUpWhenYMotionIsBlocked, stoppedByCollision, x, xd, xo, y, yd, yo, z, zd, zo
  • Constructor Summary

    Constructors
    Constructor
    Description
    FlameParticle(net.minecraft.client.multiplayer.ClientLevel world, double x, double y, double z, double velocityX, double velocityY, double velocityZ, Color tint, double diameter, net.minecraft.client.particle.SpriteSet sprites)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    getLightColor(float partialTick)
     
    net.minecraft.client.particle.ParticleRenderType
     

    Methods inherited from class net.minecraft.client.particle.TextureSheetParticle

    getU0, getU1, getV0, getV1, pickSprite, setSprite, setSpriteFromAge

    Methods inherited from class net.minecraft.client.particle.SingleQuadParticle

    getQuadSize, render, scale

    Methods inherited from class net.minecraft.client.particle.Particle

    getBoundingBox, getLifetime, getParticleGroup, getPos, isAlive, move, remove, setAlpha, setBoundingBox, setColor, setLifetime, setLocationFromBoundingbox, setParticleSpeed, setPos, setPower, setSize, shouldCull, tick, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • FlameParticle

      public FlameParticle(net.minecraft.client.multiplayer.ClientLevel world, double x, double y, double z, double velocityX, double velocityY, double velocityZ, Color tint, double diameter, net.minecraft.client.particle.SpriteSet sprites)
  • Method Details

    • getLightColor

      public int getLightColor(float partialTick)
      Overrides:
      getLightColor in class net.minecraft.client.particle.Particle
    • getRenderType

      public net.minecraft.client.particle.ParticleRenderType getRenderType()
      Specified by:
      getRenderType in class net.minecraft.client.particle.Particle