package info.u_team.u_team_core.intern.asm;

import info.u_team.u_team_core.menu.UAbstractContainerMenu;
import net.minecraft.server.level.ServerPlayer;
import net.minecraft.world.inventory.AbstractContainerMenu;

public class ASMUContainerMenuHook {
	
	/**
	 * Called from asm core mod (ucontainermenu-init-menu.js)
	 */
	public static void hook(AbstractContainerMenu menu, ServerPlayer player) {
		if (menu instanceof UAbstractContainerMenu uContainerMenu) {
			uContainerMenu.setSynchronizerPlayer(player);
			uContainerMenu.initMenu(player);
		}
	}
	
}

@@ -309,16 +309,86 @@
 menu.js)
+ from %7B@link ServerPlayer#initMenu(AbstractContainerMenu)%7D%0A%09 * method.
 %0A%09 */%0A%09p

Make coremod description a bit more enhanced