Interface RenderedBehaviourExtension

All Superinterfaces:
BehaviourExtension

public interface RenderedBehaviourExtension extends BehaviourExtension
Used to designate a block entity behaviour as one that includes additional block entity rendering. This interface provides said renderer, as well as an interface to extend features such as render bounds.
  • Method Details

    • getRenderer

    • getVisualFactory

      @Nullable default RenderedBehaviourExtension.BehaviourVisualFactory getVisualFactory()
      Optional Flywheel visual for this behaviour. If null, no extra behaviour visual is attached.
    • rendersWhenVisualizationAvailable

      default boolean rendersWhenVisualizationAvailable()
      When true, the wrapper dispatches this behaviour's renderer even when Flywheel visualization is supported. Defaults to true to keep BER active unless explicitly opted out.
    • getRenderBoundingBox

      @Nullable default net.minecraft.world.phys.AABB getRenderBoundingBox()
      Returns the additional AABB render bounds required for this block entity behaviour. By default, this is null, which will not expand the render bounds. Note that adding this behaviour in a deferred manner may require a call to CachedRenderBBBlockEntity.invalidateRenderBoundingBox() to update the client side bounding box.