User Tools

Site Tools


zh_cn:tutorial:blockentityrenderers

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
zh_cn:tutorial:blockentityrenderers [2019/12/19 10:14] lightcolourzh_cn:tutorial:blockentityrenderers [2021/03/03 12:29] – [例子] solidblock
Line 1: Line 1:
 ====== 渲染动态使用方块实体渲染器方块和物品 ====== ====== 渲染动态使用方块实体渲染器方块和物品 ======
  
-这是本教程的1.15版本。 对于1.14版本,请参见[[tutorial:1.14:blockentityrenderers |使用方块实体渲染器动态渲染块和项目(1.14)]]。+这是本教程的1.15版本。 对于1.14版本,请参见[[tutorial:1.14:blockentityrenderers |使用方块实体渲染器动态渲染块和物品(1.14)]]。
  
-阅读本教程之前,请确保您已[[tutorial:blockentity |添加方块实体]]! +阅读本教程之前,请确保您已[[zh_cn:tutorial:blockentity|添加方块实体]]!
 ===== 介绍 ===== ===== 介绍 =====
 方块本身并不是那么有趣, 方块本身并不是那么有趣,
Line 118: Line 118:
                  
         int lightAbove = WorldRenderer.getLightmapCoordinates(blockEntity.getWorld(), blockEntity.getPos().up());         int lightAbove = WorldRenderer.getLightmapCoordinates(blockEntity.getWorld(), blockEntity.getPos().up());
-        MinecraftClient.getInstance().getItemRenderer().renderItem(stack, ModelTransformation.Type.GROUND, lightAbove, OverlayTexture.DEFAULT_UV, matrices, vertexConsumers);+        MinecraftClient.getInstance().getItemRenderer().renderItem(stack, ModelTransformation.Mode.GROUND, lightAbove, OverlayTexture.DEFAULT_UV, matrices, vertexConsumers);
                  
         [...]         [...]
zh_cn/tutorial/blockentityrenderers.txt · Last modified: 2023/08/29 10:31 by wjz_p