Class EngineParticle

java.lang.Object
net.minecraft.client.particle.Particle
net.minecraft.client.particle.SingleQuadParticle
de.luckymcdev.foundryengine.client.particle.EngineParticle
All Implemented Interfaces:
ParticleContext

public class EngineParticle extends net.minecraft.client.particle.SingleQuadParticle implements ParticleContext
Implements ParticleContext so that GenericParticleData implementations can call particle methods without importing any net.minecraft.client types.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
     

    Nested classes/interfaces inherited from class net.minecraft.client.particle.SingleQuadParticle

    net.minecraft.client.particle.SingleQuadParticle.FacingCameraMode, net.minecraft.client.particle.SingleQuadParticle.Layer

    Nested classes/interfaces inherited from class net.minecraft.client.particle.Particle

    net.minecraft.client.particle.Particle.LifetimeAlpha
  • Field Summary

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

    alpha, bCol, gCol, oRoll, quadSize, rCol, roll, sprite

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

    age, bbHeight, bbWidth, friction, gravity, hasPhysics, level, lifetime, onGround, random, removed, speedUpWhenYMotionIsBlocked, x, xd, xo, y, yd, yo, z, zd, zo
  • Constructor Summary

    Constructors
    Constructor
    Description
    EngineParticle(net.minecraft.resources.Identifier id, net.minecraft.client.multiplayer.ClientLevel level, double x, double y, double z, net.minecraft.client.particle.SpriteSet sprites, int lifetime, ParticleLayer layer, List<GenericParticleData> data)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    applyRotation(float radians)
     
    void
    applyScale(float scale)
     
    protected net.minecraft.client.particle.SingleQuadParticle.Layer
     
    void
    setParticleSpeed(double x, double y, double z)
     
    void
    setPos(double x, double y, double z)
     
    void
     

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

    extract, extractRotatedQuad, extractRotatedQuad, getFacingCameraMode, getGroup, getQuadSize, getU0, getU1, getV0, getV1, scale, setAlpha, setColor, setSprite, setSpriteFromAge, toString

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

    getBoundingBox, getLifetime, getLightCoords, getParticleLimit, getPos, isAlive, move, remove, setBoundingBox, setLifetime, setLocationFromBoundingbox, setPower, setSize

    Methods inherited from class Object

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

    • EngineParticle

      public EngineParticle(net.minecraft.resources.Identifier id, net.minecraft.client.multiplayer.ClientLevel level, double x, double y, double z, net.minecraft.client.particle.SpriteSet sprites, int lifetime, ParticleLayer layer, List<GenericParticleData> data)
  • Method Details

    • tick

      public void tick()
      Overrides:
      tick in class net.minecraft.client.particle.Particle
    • getLayer

      protected net.minecraft.client.particle.SingleQuadParticle.Layer getLayer()
      Specified by:
      getLayer in class net.minecraft.client.particle.SingleQuadParticle
    • applyColor

      public void applyColor(Color color)
      Specified by:
      applyColor in interface ParticleContext
    • applyScale

      public void applyScale(float scale)
      Specified by:
      applyScale in interface ParticleContext
    • applyRotation

      public void applyRotation(float radians)
      Specified by:
      applyRotation in interface ParticleContext
    • setParticleSpeed

      public void setParticleSpeed(double x, double y, double z)
      Specified by:
      setParticleSpeed in interface ParticleContext
      Overrides:
      setParticleSpeed in class net.minecraft.client.particle.Particle
    • setPos

      public void setPos(double x, double y, double z)
      Specified by:
      setPos in interface ParticleContext
      Overrides:
      setPos in class net.minecraft.client.particle.Particle