Package com.jozufozu.flywheel.lib.visual
Class AbstractVisual
java.lang.Object
com.jozufozu.flywheel.lib.visual.AbstractVisual
- All Implemented Interfaces:
Visual
- Direct Known Subclasses:
AbstractBlockEntityVisual,AbstractEntityVisual
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected final InstancerProviderprotected final net.minecraft.world.level.Levelprotected final net.minecraft.core.Vec3iprotected final VisualizationContextThe visualization context used to construct this visual. -
Constructor Summary
ConstructorsConstructorDescriptionAbstractVisual(VisualizationContext ctx, net.minecraft.world.level.Level level) -
Method Summary
-
Field Details
-
visualizationContext
The visualization context used to construct this visual.
Useful for passing to child visuals. -
instancerProvider
-
renderOrigin
protected final net.minecraft.core.Vec3i renderOrigin -
level
protected final net.minecraft.world.level.Level level -
deleted
protected boolean deleted
-
-
Constructor Details
-
AbstractVisual
-
-
Method Details
-
update
public void update(float partialTick) Description copied from interface:VisualUpdate instances here.Good for when instances don't change very often and when animations are GPU based.
If your animations are complex or more CPU driven, seeDynamicVisualorTickableVisual. -
_delete
protected abstract void _delete() -
delete
public final void delete()Description copied from interface:VisualFree any acquired resources. -
relight
-
relight
-
relight
-
relight
-
relight
-
relight
-