tutorial:blockentityrenderers
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tutorial:blockentityrenderers [2022/07/06 18:24] – fix usage of deprecated API starchild | tutorial:blockentityrenderers [2023/02/09 13:14] (current) – "you wants" -> "you want" mschae23 | ||
---|---|---|---|
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)); |
} | } | ||
</ | </ | ||
Line 110: | Line 110: | ||
===== Rendering according to block entity data ===== | ===== Rendering according to block entity data ===== | ||
- | Sometimes you wants to render according to the block entity data (nbt), and you find they are all empty, even if you can access the data through ''/ | + | Sometimes you want to render according to the block entity data (nbt), and you find they are all empty, even if you can access the data through ''/ |
tutorial/blockentityrenderers.1657131878.txt.gz · Last modified: 2022/07/06 18:24 by starchild