zh_cn:tutorial:blockentityrenderers
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
zh_cn:tutorial:blockentityrenderers [2022/06/10 12:52] – solidblock | zh_cn:tutorial:blockentityrenderers [2023/08/29 10:31] (current) – [例子] wjz_p | ||
---|---|---|---|
Line 54: | Line 54: | ||
@Override | @Override | ||
public void onInitializeClient() { | public void onInitializeClient() { | ||
- | BlockEntityRendererRegistry.INSTANCE.register(DEMO_BLOCK_ENTITY, | + | |
+ | // | ||
} | } | ||
</ | </ | ||
Line 79: | Line 80: | ||
// 旋转物品 | // 旋转物品 | ||
- | matrices.multiply(Vec3f.POSITIVE_Y.getDegreesQuaternion((blockEntity.getWorld().getTime() + tickDelta) * 4)); | + | matrices.multiply(RotationAxis.POSITIVE_Y.rotationDegrees((blockEntity.getWorld().getTime() + tickDelta) * 4)); |
} | } | ||
</ | </ |
zh_cn/tutorial/blockentityrenderers.1654865548.txt.gz · Last modified: 2022/06/10 12:52 by solidblock