Class ComponentEntityVisual<T extends net.minecraft.world.entity.Entity>
java.lang.Object
dev.engine_room.flywheel.lib.visual.AbstractVisual
dev.engine_room.flywheel.lib.visual.AbstractEntityVisual<T>
dev.engine_room.flywheel.lib.visual.ComponentEntityVisual<T>
- All Implemented Interfaces:
DynamicVisual,EntityVisual<T>,Visual,SimpleDynamicVisual
public class ComponentEntityVisual<T extends net.minecraft.world.entity.Entity>
extends AbstractEntityVisual<T>
implements SimpleDynamicVisual
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.engine_room.flywheel.api.visual.DynamicVisual
DynamicVisual.Context -
Field Summary
FieldsFields inherited from class dev.engine_room.flywheel.lib.visual.AbstractEntityVisual
entity, visibilityTesterFields inherited from class dev.engine_room.flywheel.lib.visual.AbstractVisual
deleted, level, visualizationContext -
Constructor Summary
ConstructorsConstructorDescriptionComponentEntityVisual(VisualizationContext ctx, T entity, float partialTick) -
Method Summary
Modifier and TypeMethodDescriptionprotected void_delete()voidaddComponent(EntityComponent component) voidCalled every frame.Methods inherited from class dev.engine_room.flywheel.lib.visual.AbstractEntityVisual
computePackedLight, distanceSquared, getVisualPosition, getVisualPosition, isVisible, relightMethods 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
planFrame
-
Field Details
-
components
-
-
Constructor Details
-
ComponentEntityVisual
-
-
Method Details
-
addComponent
-
beginFrame
Description copied from interface:SimpleDynamicVisualCalled every frame.
The implementation is free to parallelize calls to this method. You must ensure proper synchronization if you need to mutate anything outside this visual.
This method andSimpleTickableVisual.tick(dev.engine_room.flywheel.api.visual.TickableVisual.Context)will never be called simultaneously.
Instancer/Instancecreation/acquisition is safe here.- Specified by:
beginFramein interfaceSimpleDynamicVisual
-
_delete
protected void _delete()- Specified by:
_deletein classAbstractVisual
-