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(LightUpdatedVisual visual, SectionTracker tracker) voidclear()voidonLightUpdate(long section) plan()booleanremove(LightUpdatedVisual visual) Remove the visual from this storage.
-
Constructor Details
-
LightUpdatedVisualStorage
public LightUpdatedVisualStorage()
-
-
Method Details
-
plan
-
add
-
remove
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()
-