Class VisualizationHelper
java.lang.Object
dev.engine_room.flywheel.lib.visualization.VisualizationHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends net.minecraft.world.level.block.entity.BlockEntity>
booleancanVisualize(T blockEntity) Checks if the given block entity can be visualized.static <T extends net.minecraft.world.level.block.entity.BlockEntity>
@Nullable BlockEntityVisualizer<? super T>getVisualizer(T blockEntity) static voidstatic voidqueueRemove(Effect effect) static voidqueueUpdate(Effect effect) Call this when you want to runVisual.update(float).static 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 <T extends net.minecraft.world.level.block.entity.BlockEntity>
booleanskipVanillaRender(T blockEntity) Checks if the given block entity is visualized and should not be rendered normally.static <T extends net.minecraft.world.level.block.entity.BlockEntity>
booleantryAddBlockEntity(T blockEntity)
-
Method Details
-
queueAdd
-
queueRemove
-
queueUpdate
public 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
public 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.
-
getVisualizer
@Nullable public static <T extends net.minecraft.world.level.block.entity.BlockEntity> @Nullable BlockEntityVisualizer<? super T> getVisualizer(T blockEntity) -
getVisualizer
@Nullable public static <T extends net.minecraft.world.entity.Entity> @Nullable EntityVisualizer<? super T> getVisualizer(T entity) -
canVisualize
public static <T extends net.minecraft.world.level.block.entity.BlockEntity> boolean canVisualize(T blockEntity) Checks if the given block entity can be visualized.- Type Parameters:
T- The type of the block entity.- Parameters:
blockEntity- The block entity to check.- Returns:
trueif the block entity can be visualized.
-
canVisualize
public static <T extends net.minecraft.world.entity.Entity> boolean canVisualize(T entity) Checks if the given entity can be visualized.- Type Parameters:
T- The type of the entity.- Parameters:
entity- The entity to check.- Returns:
trueif the entity can be visualized.
-
skipVanillaRender
public static <T extends net.minecraft.world.level.block.entity.BlockEntity> boolean skipVanillaRender(T blockEntity) Checks if the given block entity is visualized and should not be rendered normally.- Type Parameters:
T- The type of the block entity.- Parameters:
blockEntity- The block entity to check.- Returns:
trueif the block entity is visualized and should not be rendered normally.
-
skipVanillaRender
public static <T extends net.minecraft.world.entity.Entity> boolean skipVanillaRender(T entity) Checks if the given entity is visualized and should not be rendered normally.- Type Parameters:
T- The type of the entity.- Parameters:
entity- The entity to check.- Returns:
trueif the entity is visualized and should not be rendered normally.
-
tryAddBlockEntity
public static <T extends net.minecraft.world.level.block.entity.BlockEntity> boolean tryAddBlockEntity(T blockEntity)
-