Interface BlockEntityVisualizer<T extends net.minecraft.world.level.block.entity.BlockEntity>

Type Parameters:
T - The block entity type.
All Known Implementing Classes:
SimpleBlockEntityVisualizer

public interface BlockEntityVisualizer<T extends net.minecraft.world.level.block.entity.BlockEntity>
A visualizer that will be keyed to a block entity type.
  • Method Summary

    Modifier and Type
    Method
    Description
    createVisual(VisualizationContext ctx, T blockEntity, float partialTick)
    Given a block entity and context, constructs a visual for the block entity.
    boolean
    skipVanillaRender(T blockEntity)
    Checks if the given block entity should not be rendered with the vanilla BlockEntityRenderer.
  • Method Details

    • createVisual

      BlockEntityVisual<? super T> createVisual(VisualizationContext ctx, T blockEntity, float partialTick)
      Given a block entity and context, constructs a visual for the block entity.
      Parameters:
      ctx - Context for creating a visual.
      blockEntity - The block entity to construct a visual for.
      Returns:
      The visual.
    • skipVanillaRender

      boolean skipVanillaRender(T blockEntity)
      Checks if the given block entity should not be rendered with the vanilla BlockEntityRenderer.
      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.