Class LightUpdatedVisualStorage

java.lang.Object
dev.engine_room.flywheel.impl.visualization.storage.LightUpdatedVisualStorage

public class LightUpdatedVisualStorage extends Object
Keeps track of what chunks/sections each listener is in, so we can update exactly what needs to be updated.
  • 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:
      true if the visual was removed, false otherwise.
    • onLightUpdate

      public void onLightUpdate(long section)
    • clear

      public void clear()