Class BlockEntityRendererRegistry
java.lang.Object
net.fabricmc.fabric.api.client.rendering.v1.BlockEntityRendererRegistry
Deprecated.
Replaced with transitive access wideners in Fabric Transitive Access Wideners (v1).
Helper class for registering BlockEntityRenderers.
Use BlockEntityRendererFactories.register(BlockEntityType, BlockEntityRendererFactory)
instead.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <E extends BlockEntity>
voidregister
(BlockEntityType<E> blockEntityType, BlockEntityRendererFactory<? super E> blockEntityRendererFactory) Deprecated.Register a BlockEntityRenderer for a BlockEntityType.
-
Method Details
-
register
public static <E extends BlockEntity> void register(BlockEntityType<E> blockEntityType, BlockEntityRendererFactory<? super E> blockEntityRendererFactory) Deprecated.Register a BlockEntityRenderer for a BlockEntityType. Can be called clientside before the world is rendered.- Type Parameters:
E
- theBlockEntity
- Parameters:
blockEntityType
- theBlockEntityType
to register a renderer forblockEntityRendererFactory
- aBlockEntityRendererFactory
that creates aBlockEntityRenderer
, called whenBlockEntityRenderDispatcher
is initialized or immediately if the dispatcher class is already loaded
-