Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Block Handler include processing for block states #5490

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

12xx12
Copy link
Member

@12xx12 12xx12 commented Apr 9, 2023

  • Block types with multiple instances (slabs, fences, ...) have unified methods to find out about their state
  • renamed crafting table and wool block handler
  • Blocks which can be rotated contain code to rotate the block state

This is a part of the Block State PR. I try to split up my 31k line PR into more sensible parts.

In the end, this just enlarges the executable with stale code xD

- Block types with multiple instances (slabs, fences, ...) have unified methods to find out about their state
- renamed crafting table and wool block handler
@12xx12
Copy link
Member Author

12xx12 commented Apr 13, 2023

newly undocumented symbols

Type = "eBlockFace",
},
},
Notes = "Returns the {{Globals#BlockFaces|eBlockFace}} that corresponds to the given {{Globals#BlockFaces|eBlockFace}} after mirroring it around the XY plane (or rotating 180 degrees around it).",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So is it mirroring or rotating? In the general sense, those two operations are different, though for Minecraft they may be the same?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, this comment is wrong.

For most blocks, this applies. But if you want to rotate blocks with the ability to be asymmetric you don't have 180 degree rotation but mirroring. For examples vines.

Example viewed from the top:
_| should mirror to |_ but rotation does yield |^. Imagine the ^ is a horizontal line at the top.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants