tutorial:blockentityrenderers
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
tutorial:blockentityrenderers [2022/06/07 09:08] – Correct type arguments of DemoBlockEntityRenderer daomephsta | tutorial:blockentityrenderers [2022/12/17 15:35] – remove vec3f references miir | ||
---|---|---|---|
Line 52: | Line 52: | ||
@Override | @Override | ||
public void onInitializeClient() { | public void onInitializeClient() { | ||
- | BlockEntityRendererRegistry.INSTANCE.register(DEMO_BLOCK_ENTITY, | + | BlockEntityRendererRegistry.register(DEMO_BLOCK_ENTITY, |
} | } | ||
</ | </ | ||
Line 77: | Line 77: | ||
// Rotate the item | // Rotate the item | ||
- | matrices.multiply(Vec3f.POSITIVE_Y.getDegreesQuaternion((blockEntity.getWorld().getTime() + tickDelta) * 4)); | + | matrices.multiply(RotationAxis.POSITIVE_Y.rotationDegrees((blockEntity.getWorld().getTime() + tickDelta) * 4)); |
} | } | ||
</ | </ |
tutorial/blockentityrenderers.txt · Last modified: 2023/02/09 13:14 by mschae23