public interface BlockEntityRendererRegistry
Modifier and Type | Field and Description |
---|---|
static BlockEntityRendererRegistry |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
<E extends net.minecraft.block.entity.BlockEntity> |
register(net.minecraft.block.entity.BlockEntityType<E> blockEntityType,
Function<net.minecraft.client.render.block.entity.BlockEntityRenderDispatcher,net.minecraft.client.render.block.entity.BlockEntityRenderer<E>> blockEntityRenderer)
Register a BlockEntityRenderer for a BlockEntityType.
|
static final BlockEntityRendererRegistry INSTANCE
<E extends net.minecraft.block.entity.BlockEntity> void register(net.minecraft.block.entity.BlockEntityType<E> blockEntityType, Function<net.minecraft.client.render.block.entity.BlockEntityRenderDispatcher,net.minecraft.client.render.block.entity.BlockEntityRenderer<E>> blockEntityRenderer)
E
- the BlockEntity
blockEntityType
- the BlockEntityType
to register a renderer forblockEntityRenderer
- a function that returns a BlockEntityRenderer
, called
when BlockEntityRenderDispatcher
is initialized or immediately if the dispatcher
class is already loaded