-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add
lithium$trackBlockStateChange
method to `BlockCountingSec…
…tion` (#508) 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.
- Loading branch information
1 parent
e2bf990
commit 9b14a53
Showing
2 changed files
with
10 additions
and
0 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
src/main/java/me/jellysquid/mods/lithium/common/block/BlockCountingSection.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
package me.jellysquid.mods.lithium.common.block; | ||
|
||
import net.minecraft.block.BlockState; | ||
|
||
public interface BlockCountingSection { | ||
boolean lithium$mayContainAny(TrackedBlockStatePredicate trackedBlockStatePredicate); | ||
|
||
void lithium$trackBlockStateChange(BlockState newState, BlockState oldState); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters