Class SimpleBlockEntityVisualizer<T extends net.minecraft.world.level.block.entity.BlockEntity>

java.lang.Object
dev.engine_room.flywheel.lib.visualization.SimpleBlockEntityVisualizer<T>
All Implemented Interfaces:
BlockEntityVisualizer<T>

public final class SimpleBlockEntityVisualizer<T extends net.minecraft.world.level.block.entity.BlockEntity> extends Object implements BlockEntityVisualizer<T>
  • Constructor Details

  • Method Details

    • createVisual

      public BlockEntityVisual<? super T> createVisual(VisualizationContext ctx, T blockEntity, float partialTick)
      Description copied from interface: BlockEntityVisualizer
      Given a block entity and context, constructs a visual for the block entity.
      Specified by:
      createVisual in interface BlockEntityVisualizer<T extends net.minecraft.world.level.block.entity.BlockEntity>
      Parameters:
      ctx - Context for creating a visual.
      blockEntity - The block entity to construct a visual for.
      Returns:
      The visual.
    • skipVanillaRender

      public boolean skipVanillaRender(T blockEntity)
      Description copied from interface: BlockEntityVisualizer
      Checks if the given block entity should not be rendered with the vanilla BlockEntityRenderer.
      Specified by:
      skipVanillaRender in interface BlockEntityVisualizer<T extends net.minecraft.world.level.block.entity.BlockEntity>
      Parameters:
      blockEntity - The block entity to check.
      Returns:
      true if the block entity should not be rendered with the vanilla BlockEntityRenderer, false if it should.
    • builder

      public static <T extends net.minecraft.world.level.block.entity.BlockEntity> SimpleBlockEntityVisualizer.Builder<T> builder(net.minecraft.world.level.block.entity.BlockEntityType<T> type)
      Get an object to configure the visualizer for the given block entity type.
      Type Parameters:
      T - The type of the block entity.
      Parameters:
      type - The block entity type to configure.
      Returns:
      The configuration object.