package info.u_team.u_team_test.init;

import org.lwjgl.glfw.GLFW;

import com.mojang.blaze3d.platform.InputConstants;

import info.u_team.u_team_core.util.registry.ClientRegistry;
import info.u_team.u_team_test.screen.ButtonTestScreen;
import net.minecraft.client.KeyMapping;
import net.minecraft.client.Minecraft;
import net.minecraftforge.client.event.GuiScreenEvent.KeyboardKeyPressedEvent;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent;

public class TestKeys {
	
	public static final KeyMapping BASIC = new KeyMapping("Basic key", GLFW.GLFW_KEY_F8, "Basic category");
	
	private static void setup(FMLClientSetupEvent event) {
		ClientRegistry.registerKeybinding(BASIC);
	}
	
	private static void onKeyboardPressed(KeyboardKeyPressedEvent.Post event) {
		if (BASIC.isActiveAndMatches(InputConstants.getKey(event.getKeyCode(), event.getScanCode()))) {
			Minecraft.getInstance().setScreen(new ButtonTestScreen());
			event.setCanceled(true);
		}
	}
	
	public static void registerMod(IEventBus bus) {
		bus.addListener(TestKeys::setup);
	}
	
	public static void registerForge(IEventBus bus) {
		bus.addListener(TestKeys::onKeyboardPressed);
	}
	
}

@@ -117,69 +117,8 @@
 s;%0A%0A
-import info.u_team.u_team_core.util.registry.ClientRegistry;%0A
 impo
@@ -443,16 +443,77 @@
 upEvent;
+%0Aimport net.minecraftforge.fmlclient.registry.ClientRegistry;
 %0A%0Apublic
@@ -723,17 +723,17 @@
 isterKey
-b
+B
 inding(B

Remove depcreated usage