refactor: port partial occlusion to Java

Keep the Scala trait helper so reference-compiled implementations remain linkable.
This commit is contained in:
Algent committed 2026-08-14 18:24:59 +02:00
1 parent 60818853e3
commit a0428b9994
7 files changed
+142 -73

No files matched your search

@@ -0,0 +1,15 @@
package codechicken.multipart;
import codechicken.lib.vec.Cuboid6;
/** Java callbacks for partial occlusion testing. */
public interface JPartialOcclusion {
/** Returns the partial occlusion boxes. */
Iterable<Cuboid6> getPartialOcclusionBoxes();
/** Returns whether this part may be completely obscured. */
default boolean allowCompleteOcclusion() {
return false;
}
}