Class VisualizationHelper

java.lang.Object
com.jozufozu.flywheel.lib.visual.VisualizationHelper

public final class VisualizationHelper extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T extends net.minecraft.world.level.block.entity.BlockEntity>
    boolean
    canVisualize(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>
    boolean
    shouldSkipRender(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>
    boolean
    tryAddBlockEntity(T blockEntity)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      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.
    • 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:
      true if 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:
      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)