Class VisualizationHelper

java.lang.Object
dev.engine_room.flywheel.lib.visualization.VisualizationHelper

public final class VisualizationHelper extends Object
  • Method Details

    • queueAdd

      public static void queueAdd(Effect effect)
    • queueRemove

      public static void queueRemove(Effect effect)
    • queueUpdate

      public static void queueUpdate(net.minecraft.world.level.block.entity.BlockEntity blockEntity)
      Call this when you want to run Visual.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 run Visual.update(float).
      Parameters:
      entity - The entity whose visual you want to update.
    • queueUpdate

      public static void queueUpdate(Effect effect)
      Call this when you want to run Visual.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:
      true if 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:
      true if 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:
      true if 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:
      true if 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)