Package com.jozufozu.flywheel.lib.visual
Class SimpleEntityVisual<T extends net.minecraft.world.entity.Entity>
java.lang.Object
com.jozufozu.flywheel.lib.visual.AbstractVisual
com.jozufozu.flywheel.lib.visual.AbstractEntityVisual<T>
com.jozufozu.flywheel.lib.visual.SimpleEntityVisual<T>
- All Implemented Interfaces:
DynamicVisual,EntityVisual<T>,Visual,SimpleDynamicVisual
- Direct Known Subclasses:
MinecartVisual
public class SimpleEntityVisual<T extends net.minecraft.world.entity.Entity>
extends AbstractEntityVisual<T>
implements SimpleDynamicVisual
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.jozufozu.flywheel.api.visual.DynamicVisual
DynamicVisual.Context -
Field Summary
FieldsFields inherited from class com.jozufozu.flywheel.lib.visual.AbstractEntityVisual
entity, visibilityTesterFields inherited from class com.jozufozu.flywheel.lib.visual.AbstractVisual
deleted, instancerProvider, level, renderOrigin, visualizationContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void_delete()voidaddComponent(EntityComponent component) voidCalled every frame.Methods inherited from class com.jozufozu.flywheel.lib.visual.AbstractEntityVisual
distanceSquared, getVisualPosition, getVisualPosition, init, isVisibleMethods inherited from class com.jozufozu.flywheel.lib.visual.AbstractVisual
delete, relight, relight, relight, relight, relight, relight, updateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.jozufozu.flywheel.lib.visual.SimpleDynamicVisual
planFrame
-
Field Details
-
components
-
-
Constructor Details
-
SimpleEntityVisual
-
-
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(com.jozufozu.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
-