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

All Known Implementing Classes:
CustomItemDisplayContextTest.RendererEvents.ItemHangerBlockEntityRenderer

public interface IBlockEntityRendererExtension<T extends net.minecraft.world.level.block.entity.BlockEntity>
  • Method Summary

    Modifier and Type
    Method
    Description
    default net.minecraft.world.phys.AABB
    getRenderBoundingBox(T blockEntity)
    Return an AABB that controls the visible scope of this BlockEntityRenderer.
  • Method Details

    • getRenderBoundingBox

      default net.minecraft.world.phys.AABB getRenderBoundingBox(T blockEntity)
      Return an AABB that controls the visible scope of this BlockEntityRenderer. Defaults to the unit cube at the given position. AABB.INFINITE can be used to declare the BER should be visible everywhere.
      Returns:
      an appropriately sized AABB for the BlockEntityRenderer