Class FireElement

java.lang.Object
dev.engine_room.flywheel.lib.visual.AbstractVisual
dev.engine_room.vanillin.elements.FireElement
All Implemented Interfaces:
dev.engine_room.flywheel.api.visual.DynamicVisual, dev.engine_room.flywheel.api.visual.Visual, dev.engine_room.flywheel.lib.visual.SimpleDynamicVisual

public final class FireElement extends dev.engine_room.flywheel.lib.visual.AbstractVisual implements dev.engine_room.flywheel.lib.visual.SimpleDynamicVisual
A component that uses instances to render the fire animation on an entity.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface dev.engine_room.flywheel.api.visual.DynamicVisual

    dev.engine_room.flywheel.api.visual.DynamicVisual.Context
  • Field Summary

    Fields inherited from class dev.engine_room.flywheel.lib.visual.AbstractVisual

    deleted, level, visualizationContext
  • Constructor Summary

    Constructors
    Constructor
    Description
    FireElement(dev.engine_room.flywheel.api.visualization.VisualizationContext ctx, net.minecraft.world.entity.Entity entity, float partialTick)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    beginFrame(dev.engine_room.flywheel.api.visual.DynamicVisual.Context context)
    Update the fire instances.

    Methods inherited from class dev.engine_room.flywheel.lib.visual.AbstractVisual

    delete, instancerProvider, renderOrigin, update

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface dev.engine_room.flywheel.lib.visual.SimpleDynamicVisual

    planFrame

    Methods inherited from interface dev.engine_room.flywheel.api.visual.Visual

    delete, update
  • Constructor Details

    • FireElement

      public FireElement(dev.engine_room.flywheel.api.visualization.VisualizationContext ctx, net.minecraft.world.entity.Entity entity, float partialTick)
  • Method Details

    • beginFrame

      public void beginFrame(dev.engine_room.flywheel.api.visual.DynamicVisual.Context context)
      Update the fire instances. You'd typically call this in your visual's beginFrame method.
      Specified by:
      beginFrame in interface dev.engine_room.flywheel.lib.visual.SimpleDynamicVisual
      Parameters:
      context - The frame context.
    • _delete

      public void _delete()
      Specified by:
      _delete in class dev.engine_room.flywheel.lib.visual.AbstractVisual