Skip to content

Commit

Permalink
finish bed rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
Thepigcat76 committed Apr 29, 2024
1 parent 290f739 commit dd1f26b
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,15 @@ private void renderPiece(
boolean pFoot
) {
pPoseStack.pushPose();
pPoseStack.translate(0.0F, 0.5625F, pFoot ? -1.0F : 0.0F);
pPoseStack.translate(0.0F, 0, pFoot ? -1.0F : 0.0F);
pPoseStack.mulPose(Axis.XP.rotationDegrees(90.0F));
pPoseStack.mulPose(Axis.XN.rotationDegrees(180.0F));
if (pDirection.equals(Direction.EAST) || pDirection.equals(Direction.WEST)) {
pPoseStack.mulPose(Axis.XN.rotationDegrees(180.0F));
pPoseStack.translate(0, -1, 0);
} else {
pPoseStack.mulPose(Axis.YN.rotationDegrees(180.0F));
pPoseStack.translate(-1, 0, 0);
}
pPoseStack.translate(0.5F, 0.5F, 0.5F);
pPoseStack.mulPose(Axis.ZP.rotationDegrees(180.0F + pDirection.toYRot()));
pPoseStack.translate(-0.5F, -0.5F, -0.5F);
Expand Down

0 comments on commit dd1f26b

Please sign in to comment.