Search in sources :

Example 1 with Bedrockify

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;
}
Also used : KeyBinding(net.minecraft.client.options.KeyBinding) SettingsGUI(me.juancarloscp52.bedrockify.client.gui.SettingsGUI) Overlay(me.juancarloscp52.bedrockify.client.gui.overlay.Overlay) ReachAroundPlacement(me.juancarloscp52.bedrockify.client.features.ReachAroundPlacement) HeldItemTooltips(me.juancarloscp52.bedrockify.client.features.HeldItemTooltips.HeldItemTooltips)

Aggregations

HeldItemTooltips (me.juancarloscp52.bedrockify.client.features.HeldItemTooltips.HeldItemTooltips)1 ReachAroundPlacement (me.juancarloscp52.bedrockify.client.features.ReachAroundPlacement)1 SettingsGUI (me.juancarloscp52.bedrockify.client.gui.SettingsGUI)1 Overlay (me.juancarloscp52.bedrockify.client.gui.overlay.Overlay)1 KeyBinding (net.minecraft.client.options.KeyBinding)1