Interface VisualizationManager
- All Known Implementing Classes:
VisualizationManagerImpl
@NonExtendable
public interface VisualizationManager
-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable VisualizationManagerget(@Nullable net.minecraft.world.level.LevelAccessor level) VisualManager<net.minecraft.world.level.block.entity.BlockEntity>VisualManager<net.minecraft.world.entity.Entity>static VisualizationManagergetOrThrow(@Nullable net.minecraft.world.level.LevelAccessor level) net.minecraft.core.Vec3istatic voidqueueUpdate(net.minecraft.world.entity.Entity entity) Call this when you want to runVisual.update(float).static voidqueueUpdate(net.minecraft.world.level.block.entity.BlockEntity blockEntity) Call this when you want to runVisual.update(float).static voidqueueUpdate(net.minecraft.world.level.LevelAccessor level, Effect effect) Call this when you want to runVisual.update(float).static booleansupportsVisualization(@Nullable net.minecraft.world.level.LevelAccessor level)
-
Method Details
-
supportsVisualization
static boolean supportsVisualization(@Nullable @Nullable net.minecraft.world.level.LevelAccessor level) -
get
@Nullable static @Nullable VisualizationManager get(@Nullable @Nullable net.minecraft.world.level.LevelAccessor level) -
getOrThrow
static VisualizationManager getOrThrow(@Nullable @Nullable net.minecraft.world.level.LevelAccessor level) -
queueUpdate
static void queueUpdate(net.minecraft.world.level.block.entity.BlockEntity blockEntity) Call this when you want to runVisual.update(float).- Parameters:
blockEntity- The block entity whose visual you want to update.
-
queueUpdate
static void queueUpdate(net.minecraft.world.entity.Entity entity) Call this when you want to runVisual.update(float).- Parameters:
entity- The entity whose visual you want to update.
-
queueUpdate
Call this when you want to runVisual.update(float).- Parameters:
effect- The effect whose visual you want to update.
-
getRenderOrigin
net.minecraft.core.Vec3i getRenderOrigin() -
getBlockEntities
VisualManager<net.minecraft.world.level.block.entity.BlockEntity> getBlockEntities() -
getEntities
VisualManager<net.minecraft.world.entity.Entity> getEntities() -
getEffects
VisualManager<Effect> getEffects()
-