User Tools

Site Tools


tutorial:blockentityrenderers

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
tutorial:blockentityrenderers [2019/12/14 10:43]
juuz fix typo
tutorial:blockentityrenderers [2019/12/14 21:51] (current)
juuz It takes a BEType now
Line 60: Line 60:
 @Override @Override
 public void onInitializeClient() { public void onInitializeClient() {
-    BlockEntityRendererRegistry.INSTANCE.register(DemoBlockEntity.class, MyBlockEntityRenderer::​new);​+    BlockEntityRendererRegistry.INSTANCE.register(DEMO_BLOCK_ENTITY, MyBlockEntityRenderer::​new);​
 } }
 </​code>​ </​code>​
tutorial/blockentityrenderers.txt · Last modified: 2019/12/14 21:51 by juuz