Package com.jozufozu.flywheel.lib.visual
Interface SimpleTickableVisual
- All Superinterfaces:
TickableVisual,Visual
- All Known Implementing Classes:
MinecartVisual,TntMinecartVisual
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.jozufozu.flywheel.api.visual.TickableVisual
TickableVisual.Context -
Method Summary
Modifier and TypeMethodDescriptiondefault Plan<TickableVisual.Context>planTick()Invoked every tick.voidtick(TickableVisual.Context context) Called every tick.
-
Method Details
-
tick
Called every tick.
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 andSimpleDynamicVisual.beginFrame(com.jozufozu.flywheel.api.visual.DynamicVisual.Context)will never be called simultaneously.
Instancer/Instancecreation/acquisition is safe here. -
planTick
Description copied from interface:TickableVisualInvoked every tick.
The implementation is free to parallelize the invocation of this plan. You must ensure proper synchronization if you need to mutate anything outside this visual.
This plan and the one returned byDynamicVisual.planFrame()will never be invoked simultaneously.
Instancer/Instancecreation/acquisition is safe here.- Specified by:
planTickin interfaceTickableVisual
-