Open3

Forge 1.19.2のModを1.20.1にアップデートする

HarinekoHarineko
        itemRenderer.renderGuiItem(broomEntity.getCloneItemStack(),
                this.leftPos + 99,
                this.topPos - 25);

        PoseStack poseStack = new PoseStack();
        poseStack.translate(this.leftPos + 99, this.topPos - 25, 0);
        ItemStack stack = broomEntity.getCloneItemStack();
        BakedModel model = itemRenderer.getModel(stack, null, null, 0);
        int brightness = 0x00F000F0;
        itemRenderer.render(stack, ItemDisplayContext.GUI, false,
                guiGraphics.pose(),
                guiGraphics.bufferSource(),
                brightness, OverlayTexture.NO_OVERLAY, model);