Class VisualizationManagerImpl

java.lang.Object
dev.engine_room.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.
  • Method Details

    • 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()
    • renderOrigin

      public net.minecraft.core.Vec3i renderOrigin()
      Specified by:
      renderOrigin in interface VisualizationManager
    • blockEntities

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

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

      public VisualManager<Effect> effects()
      Specified by:
      effects in interface VisualizationManager
    • renderDispatcher

      public VisualizationManager.RenderDispatcher renderDispatcher()
      Description copied from interface: VisualizationManager
      Get the render dispatcher, which can be used to invoke rendering. This should only be used by mods which heavily rewrite rendering to restore compatibility with Flywheel without mixins.
      Specified by:
      renderDispatcher in interface VisualizationManager
    • tick

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

      public void onLightUpdate(net.minecraft.core.SectionPos sectionPos, net.minecraft.world.level.LightLayer layer)
    • getEngineImpl

      @Nullable public @Nullable EngineImpl getEngineImpl()
      Expose the raw engine, iff it has been initialized and is a default Flywheel engine.

      For debug information gathering only.