Class VisualizationManagerImpl

java.lang.Object
com.jozufozu.flywheel.impl.visualization.VisualizationManagerImpl
All Implemented Interfaces:
VisualizationManager

public class VisualizationManagerImpl extends Object implements VisualizationManager
A manager class for a single level where visualization is supported.
  • Field Details

  • Method Details

    • provider

      public static Supplier<VisualizationContext> provider(Engine engine, RenderStage stage)
    • createUpdateLimiter

      protected DistanceUpdateLimiterImpl createUpdateLimiter()
    • supportsVisualization

      @Contract("null -> false") public static boolean supportsVisualization(@Nullable @Nullable net.minecraft.world.level.LevelAccessor level)
    • get

      @Nullable public static @Nullable VisualizationManagerImpl get(@Nullable @Nullable net.minecraft.world.level.LevelAccessor level)
    • getOrThrow

      public static VisualizationManagerImpl getOrThrow(@Nullable @Nullable net.minecraft.world.level.LevelAccessor level)
    • reset

      public static void reset(net.minecraft.world.level.LevelAccessor level)
    • resetAll

      public static void resetAll()
    • getRenderOrigin

      public net.minecraft.core.Vec3i getRenderOrigin()
      Specified by:
      getRenderOrigin in interface VisualizationManager
    • getBlockEntities

      public VisualManager<net.minecraft.world.level.block.entity.BlockEntity> getBlockEntities()
      Specified by:
      getBlockEntities in interface VisualizationManager
    • getEntities

      public VisualManager<net.minecraft.world.entity.Entity> getEntities()
      Specified by:
      getEntities in interface VisualizationManager
    • getEffects

      public VisualManager<Effect> getEffects()
      Specified by:
      getEffects in interface VisualizationManager
    • tick

      public void tick()
      Begin execution of the tick plan.
    • beginFrame

      public void beginFrame(RenderContext context)
      Begin execution of the frame plan.
    • renderStage

      public void renderStage(RenderContext context, RenderStage stage)
      Draw all visuals for the given stage.
    • renderCrumbling

      public void renderCrumbling(RenderContext context, it.unimi.dsi.fastutil.longs.Long2ObjectMap<SortedSet<net.minecraft.server.level.BlockDestructionProgress>> destructionProgress)
    • delete

      public void delete()
      Free all acquired resources and delete this manager.
    • enqueueLightUpdateSection

      public void enqueueLightUpdateSection(long section)