mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-26 15:03:18 +00:00
refactor: port micro occlusion client to Java
This commit is contained in:
1 parent
d69d12be68
commit
fa41ae0609
6 files changed
+62
-23
No files matched your search
@@ -31,10 +31,8 @@ trait TMicroOcclusionClient extends TMicroOcclusion with JMicroShrinkRender {
|
||||
recalcBounds()
|
||||
}
|
||||
|
||||
def recalcBounds() {
|
||||
renderBounds = getBounds.copy
|
||||
renderMask = MicroOcclusion$.MODULE$.recalcBounds(this, renderBounds)
|
||||
}
|
||||
def recalcBounds(): Unit =
|
||||
TMicroOcclusionClientLogic.recalcBounds(this)
|
||||
|
||||
override def getPriorityClass = 0
|
||||
}
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
package codechicken.microblock;
|
||||
|
||||
/** Render-state updates behind the retained Scala state accessors and lifecycle super bridges. */
|
||||
final class TMicroOcclusionClientLogic {
|
||||
|
||||
private TMicroOcclusionClientLogic() {}
|
||||
|
||||
static void recalcBounds(TMicroOcclusionClient part) {
|
||||
part.renderBounds_$eq(part.getBounds().copy());
|
||||
part.renderMask_$eq(MicroOcclusion$.MODULE$.recalcBounds(part, part.renderBounds()));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user