Class VisualizationManagerImpl
java.lang.Object
com.jozufozu.flywheel.impl.visualization.VisualizationManagerImpl
- All Implemented Interfaces:
VisualizationManager
A manager class for a single level where visualization is supported.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidbeginFrame(RenderContext context) Begin execution of the frame plan.protected DistanceUpdateLimiterImplvoiddelete()Free all acquired resources and delete this manager.voidenqueueLightUpdateSection(long section) static @Nullable VisualizationManagerImplget(@Nullable net.minecraft.world.level.LevelAccessor level) VisualManager<net.minecraft.world.level.block.entity.BlockEntity>VisualManager<net.minecraft.world.entity.Entity>static VisualizationManagerImplgetOrThrow(@Nullable net.minecraft.world.level.LevelAccessor level) net.minecraft.core.Vec3istatic Supplier<VisualizationContext>provider(Engine engine, RenderStage stage) voidrenderCrumbling(RenderContext context, it.unimi.dsi.fastutil.longs.Long2ObjectMap<SortedSet<net.minecraft.server.level.BlockDestructionProgress>> destructionProgress) voidrenderStage(RenderContext context, RenderStage stage) Draw all visuals for the given stage.static voidreset(net.minecraft.world.level.LevelAccessor level) static voidresetAll()static booleansupportsVisualization(@Nullable net.minecraft.world.level.LevelAccessor level) voidtick()Begin execution of the tick plan.
-
Field Details
-
frameLimiter
-
-
Method Details
-
provider
-
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:
getRenderOriginin interfaceVisualizationManager
-
getBlockEntities
- Specified by:
getBlockEntitiesin interfaceVisualizationManager
-
getEntities
- Specified by:
getEntitiesin interfaceVisualizationManager
-
getEffects
- Specified by:
getEffectsin interfaceVisualizationManager
-
tick
public void tick()Begin execution of the tick plan. -
beginFrame
Begin execution of the frame plan. -
renderStage
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)
-