Package com.jozufozu.flywheel.lib.visual
Class VisualizationHelper
java.lang.Object
com.jozufozu.flywheel.lib.visual.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 <T extends net.minecraft.world.level.block.entity.BlockEntity>
booleanshouldSkipRender(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
-
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.
-
shouldSkipRender
public static <T extends net.minecraft.world.level.block.entity.BlockEntity> boolean shouldSkipRender(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.
-
shouldSkipRender
public static <T extends net.minecraft.world.entity.Entity> boolean shouldSkipRender(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)
-