Mixin Overwriting a Public Static Method #1526
-
I've got a Mixin right here that overwrites the entire tick method of the BeaconBlockEntity class with a slightly modified version of it. Unfortunately, keeping the "static" keyword makes it say "Public static members are not allowed in Mixin classes". Removing the static keyword makes it crash upon startup. `
}` |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You should be able to overwrite public static methods like any other, you'll have to post the crash you're getting from trying to do so. Although in your particular case I can't see what you're changing for whether you need to overwrite the whole method in the first place (as it does prevent any other mod from mixing into the method) |
Beta Was this translation helpful? Give feedback.
You should be able to overwrite public static methods like any other, you'll have to post the crash you're getting from trying to do so. Although in your particular case I can't see what you're changing for whether you need to overwrite the whole method in the first place (as it does prevent any other mod from mixing into the method)