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

Add lithium$trackBlockStateChange method to BlockCountingSection #508

Merged

Conversation

Steveplays28
Copy link
Contributor

@Steveplays28 Steveplays28 commented Apr 7, 2024

This allows other mods such as Noisium and Big Globe to call this function using the BlockCountingSection interface to track blockstates (increment/decrement the blockstate counter) during world generation, for example.

Example usage (lets Lithium know that a blockstate has changed from air to stone):

((BlockCountingSection) chunkSection).lithium$trackBlockStateChange(Blocks.STONE.getDefaultState(), BlockState.AIR)

Closes #506.

Steveplays28 and others added 2 commits April 7, 2024 14:37
…tion`

This allows other mods such as Noisium and Big Globe to call this function using the `BlockCountingSection` interface to track blockstates (increment/decrement the blockstate counter) during world generation, for example.
@2No2Name 2No2Name merged commit 9b14a53 into CaffeineMC:develop Apr 9, 2024
1 check passed
@Steveplays28 Steveplays28 deleted the add-track-block-state-change-method branch April 9, 2024 16:25
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.

Allow externally changing Lithium's blockstate counters
2 participants