You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm the author of EnchantedShulkers, and I got a request to make my mod compatible with yours RubixDev/EnchantedShulkers#21. While working on that, I learned about Mixin Inheritance, which is preferred over just overriding entire vanilla methods in mixins. I am mainly talking about the getUpdatePacket() and getUpdateTag() methods in the MixinShulkerBoxBlockEntity class:
You can see how I "override" the same two methods on my side here and here (note: I'm using yarn mappings so the names are different).
While a change on your side technically isn't necessary, it would still be good practice to do so and a step forward for better compatibility between your mod and other mods like Shulker+.
Additionally you should consider relying less on ci.cancel() calls. Mainly
model.getLid().render(poseStack, vertexConsumer, i, j, 1.0f, 1.0f, 1.0f, 1.0f);
poseStack.popPose();
}
caused some trouble. For ensuring compatibility between our mods I had to mixin into your mixins in these places to basically just apply the same modifications that I do to the vanilla game.
The text was updated successfully, but these errors were encountered:
Hi, I'm the author of EnchantedShulkers, and I got a request to make my mod compatible with yours RubixDev/EnchantedShulkers#21. While working on that, I learned about Mixin Inheritance, which is preferred over just overriding entire vanilla methods in mixins. I am mainly talking about the
getUpdatePacket()
andgetUpdateTag()
methods in theMixinShulkerBoxBlockEntity
class:MCTweaks/SplitShulkerBoxes/common/src/main/java/cursedflames/splitshulkers/mixin/MixinShulkerBoxBlockEntity.java
Lines 70 to 85 in 1feecdf
You can see how I "override" the same two methods on my side here and here (note: I'm using yarn mappings so the names are different).
While a change on your side technically isn't necessary, it would still be good practice to do so and a step forward for better compatibility between your mod and other mods like Shulker+.
Additionally you should consider relying less on
ci.cancel()
calls. MainlyMCTweaks/SplitShulkerBoxes/common/src/main/java/cursedflames/splitshulkers/mixin/client/MixinBlockEntityWithoutLevelRenderer.java
Lines 50 to 58 in 1feecdf
MCTweaks/SplitShulkerBoxes/fabric/src/main/java/cursedflames/splitshulkers/mixin/client/MixinShulkerBoxRenderer.java
Lines 28 to 47 in 1feecdf
The text was updated successfully, but these errors were encountered: