use of me.juancarloscp52.bedrockify.Bedrockify in project BedrockIfy by juancarloscp52.
the class BedrockifyClient method onInitializeClient.
@Override
public void onInitializeClient() {
LOGGER.info("Initializing BedrockIfy Client.");
overlay = new Overlay((MinecraftClient.getInstance()));
reachAroundPlacement = new ReachAroundPlacement(MinecraftClient.getInstance());
heldItemTooltips = new HeldItemTooltips();
settingsGUI = new SettingsGUI();
keyBinding = KeyBindingHelper.registerKeyBinding(new KeyBinding("bedrockIfy.key.settings", InputUtil.Type.KEYSYM, GLFW.GLFW_KEY_B, "BedrockIfy"));
ClientTickEvents.END_CLIENT_TICK.register(client -> {
while (keyBinding.wasPressed()) {
client.openScreen(settingsGUI.getConfigScreen(client.currentScreen, true));
}
});
instance = this;
}
Aggregations