Class LightUpdatedVisualStorage
java.lang.Object
dev.engine_room.flywheel.impl.visualization.storage.LightUpdatedVisualStorage
Keeps track of what chunks/sections each listener is in, so we can update exactly what needs to be updated.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(dev.engine_room.flywheel.api.visual.LightUpdatedVisual visual, SectionTracker tracker) voidclear()voidonLightUpdate(long section) dev.engine_room.flywheel.api.task.Plan<dev.engine_room.flywheel.api.visual.DynamicVisual.Context>plan()booleanremove(dev.engine_room.flywheel.api.visual.LightUpdatedVisual visual) Remove the visual from this storage.
-
Constructor Details
-
LightUpdatedVisualStorage
public LightUpdatedVisualStorage()
-
-
Method Details
-
plan
public dev.engine_room.flywheel.api.task.Plan<dev.engine_room.flywheel.api.visual.DynamicVisual.Context> plan() -
add
public void add(dev.engine_room.flywheel.api.visual.LightUpdatedVisual visual, SectionTracker tracker) -
remove
public boolean remove(dev.engine_room.flywheel.api.visual.LightUpdatedVisual visual) Remove the visual from this storage.- Parameters:
visual- The visual to remove.- Returns:
trueif the visual was removed,falseotherwise.
-
onLightUpdate
public void onLightUpdate(long section) -
clear
public void clear()
-