net.minecraft.client.render.block.entity.BlockEntityRenderer Java Examples

The following examples show how to use net.minecraft.client.render.block.entity.BlockEntityRenderer. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ClientRegistry.java    From patchwork-api with GNU Lesser General Public License v2.1 2 votes vote down vote up
/**
 * Registers a {@link BlockEntityRenderer}
 * Call this during {@link net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent}.
 * This method is safe to call during parallel mod loading.
 */
public static synchronized <T extends BlockEntity> void bindTileEntitySpecialRenderer(Class<T> tileEntityClass, BlockEntityRenderer<? super T> specialRenderer) {
	BlockEntityRendererRegistry.INSTANCE.register(tileEntityClass, specialRenderer);
	specialRenderer.setRenderManager(BlockEntityRenderDispatcher.INSTANCE);
}