Skip to content

Chunk Render error after changing CauldronBehavior interface by mixin #1937

Discussion options

You must be logged in to vote

So can I just change the public method in that interface without mixin? Or if there is any method to let mixin invoked after the initialize of ItemInit, this problem would be handled?

You can just modify the maps in your mod initialiser.
The maps are public static so you can call their methods directly.

Something like (untested code):

   // Method inside your mod initialiser class (should be invoked after your bucket is initialised)
   public static void initialiseCauldron(){
       // Use static references to the CauldronBehavior.maps
       CauldronBehavior.WATER_CAULDRON_BEHAVIOR.put(ItemInit.WOODEN_BUCKET, (state, world, pos, player, hand, stack) -> {
           return CauldronBehav…

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@theAfish
Comment options

Comment options

You must be logged in to vote
2 replies
@theAfish
Comment options

@kanpov
Comment options

Answer selected by theAfish
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants