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

Fix ignore RenderType when generating Faces and baking Model #1268

Open
wants to merge 1 commit into
base: version/latest
Choose a base branch
from

Conversation

SuperTuxii
Copy link

Related to issue #1262

Changes:

Adding IBlockNeighborhood to ChiseledBlockBakedModel's Constructor and its private generateFaces() method.
Using IBlockNeighborhood when accessing IBlockInformation in GreedyMeshBuilder.MaterialProvider outside the current block.
Adding method isSeeThrough() to IBlockInformation
Adding ChiselRenderType as an argument to GreedyMeshBuilder's buildMesh() method.
Replacing GreedyMeshBuilder with an extended binary greedy mesh builder.

…r and its private `generateFaces()` method.

Using `IBlockNeighborhood` when accessing `IBlockInformation` in `GreedyMeshBuilder.MaterialProvider` outside the current block.
Adding method `isSeeThrough()` to `IBlockInformation`
Adding `ChiselRenderType` as an argument to `GreedyMeshBuilder`'s `buildMesh()` method.
Replacing `GreedyMeshBuilder` with an extended binary greedy mesh builder.
Comment on lines +49 to +52
final boolean RENDERTYPE_SOLID = chiselRenderType.layer.equals(RenderType.solid());
final int BITS_PER_BLOCK_SIDE = StateEntrySize.current().getBitsPerBlockSide();
final int BITS_PER_BLOCK_SIDE_P = BITS_PER_BLOCK_SIDE + 2;
final int BITS_PER_BLOCK_SIDE_P2 = BITS_PER_BLOCK_SIDE_P * BITS_PER_BLOCK_SIDE_P;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please use the code formatting that aligns with the rest.
In this particular case UPPER_CASE_SNAKE is ment for static final fields.

/me needs to add a formatting file, and gradle step.

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

Successfully merging this pull request may close these issues.

2 participants