mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-26 23:13:07 +00:00
refactor: port partial occlusion to Java
Keep the Scala trait helper so reference-compiled implementations remain linkable.
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user