Class EntityFirework.SparkFX

  • All Implemented Interfaces:
    org.teavm.jso.JSObject
    Enclosing class:
    EntityFirework

    public static class EntityFirework.SparkFX
    extends EntityFX
    • Constructor Detail

      • SparkFX

        public SparkFX​(World parWorld,
                       double parDouble1,
                       double parDouble2,
                       double parDouble3,
                       double parDouble4,
                       double parDouble5,
                       double parDouble6,
                       EffectRenderer parEffectRenderer)
    • Method Detail

      • setTrail

        public void setTrail​(boolean trailIn)
      • setTwinkle

        public void setTwinkle​(boolean twinkleIn)
      • setColour

        public void setColour​(int colour)
      • setFadeColour

        public void setFadeColour​(int faceColour)
      • canBePushed

        public boolean canBePushed()
        Description copied from class: Entity
        + Returns true if this entity should push and be pushed by other entities when colliding.
        Overrides:
        canBePushed in class Entity
      • renderParticle

        public void renderParticle​(WorldRenderer worldrenderer,
                                   Entity entity,
                                   float f,
                                   float f1,
                                   float f2,
                                   float f3,
                                   float f4,
                                   float f5)
        Description copied from class: EntityFX
        + Renders the particle
        Overrides:
        renderParticle in class EntityFX
      • onUpdate

        public void onUpdate()
        Description copied from class: EntityFX
        + Called to update the entity's position/logic.
        Overrides:
        onUpdate in class EntityFX
      • getBrightness

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