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
ConstructorsConstructorDescriptionFireElement(dev.engine_room.flywheel.api.visualization.VisualizationContext ctx, net.minecraft.world.entity.Entity entity, float partialTick) -
Method Summary
Modifier and TypeMethodDescriptionvoid_delete()voidbeginFrame(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, updateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.engine_room.flywheel.lib.visual.SimpleDynamicVisual
planFrameMethods 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'sbeginFramemethod.- Specified by:
beginFramein interfacedev.engine_room.flywheel.lib.visual.SimpleDynamicVisual- Parameters:
context- The frame context.
-
_delete
public void _delete()- Specified by:
_deletein classdev.engine_room.flywheel.lib.visual.AbstractVisual
-