Interface RenderedBehaviourExtension
- All Superinterfaces:
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.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic classstatic interface -
Method Summary
Modifier and TypeMethodDescriptiondefault net.minecraft.world.phys.AABBReturns the additional AABB render bounds required for this block entity behaviour.Optional Flywheel visual for this behaviour.default booleanWhen true, the wrapper dispatches this behaviour's renderer even when Flywheel visualization is supported.
-
Method Details
-
getRenderer
RenderedBehaviourExtension.BehaviourRenderSupplier getRenderer() -
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 toCachedRenderBBBlockEntity.invalidateRenderBoundingBox()to update the client side bounding box.
-