Badge images report the certificate status at the moment they are fetched
BackProbeIntegrity Authority
dev/mishka/gamblerplus/client/Keybinds.class 3.3 KB
Class
public final synchronized dev.mishka.gamblerplus.client.Keybinds
Extends
java.lang.Object
Implements
nothing
Compiled for
Java 21

Reconstructed source

// Reconstructed from bytecode by BackProbe (dev/mishka/gamblerplus/client/Keybinds.class, Java 21); this is not the original source.

package dev.mishka.gamblerplus.client;

import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents;
import net.fabricmc.fabric.api.client.keybinding.v1.KeyBindingHelper;
import net.minecraft.class_304;
import net.minecraft.class_304.class_11900;
import net.minecraft.class_310;
import net.minecraft.class_3675;
import net.minecraft.class_3675.class_307;

public final class Keybinds {

    public static class_304 openUi;
    public static class_304 toggleGambling;
    public static class_304 toggleHud;

    private Keybinds() {
        super();
        return;
    }

    public static void register(Config arg0, Runnable arg1) {
        Keybinds.openUi = KeyBindingHelper.registerKeyBinding(new class_304("key.gamblerplus.open", class_3675.class_307.field_1668, class_3675.field_16237.method_1444(), class_304.class_11900.field_62556));
        Keybinds.toggleGambling = KeyBindingHelper.registerKeyBinding(new class_304("key.gamblerplus.toggle_mode", class_3675.class_307.field_1668, class_3675.field_16237.method_1444(), class_304.class_11900.field_62556));
        Keybinds.toggleHud = KeyBindingHelper.registerKeyBinding(new class_304("key.gamblerplus.toggle_hud", class_3675.class_307.field_1668, class_3675.field_16237.method_1444(), class_304.class_11900.field_62556));
        ClientTickEvents.END_CLIENT_TICK.register(indy.onEndTick(arg1, arg0));
        return;
    }

    private static void lambda$register$0(Runnable arg0, Config arg1, class_310 arg2) {
    L0:
        if (!Keybinds.openUi.method_1436()) goto L30;
        if (!class_310.method_1551().field_1729.method_1613()) goto L0;
        arg0.run();
        goto L0;
    L30:
        if (!Keybinds.toggleGambling.method_1436()) goto L46;
        arg1.toggleGamblingMode();
        goto L30;
    L46:
        if (!Keybinds.toggleHud.method_1436()) goto L62;
        arg1.toggleHudBar();
        goto L46;
    L62:
        return;
    }
}

Methods declared

private void <init>()
public static void register(dev.mishka.gamblerplus.client.Config, java.lang.Runnable)
private static synthetic void lambda$register$0(java.lang.Runnable, dev.mishka.gamblerplus.client.Config, net.minecraft.class_310)

Fields

public static net.minecraft.class_304 openUi
public static net.minecraft.class_304 toggleGambling
public static net.minecraft.class_304 toggleHud

Calls out to

dev.mishka.gamblerplus.client.Config.toggleGamblingMode()
dev.mishka.gamblerplus.client.Config.toggleHudBar()
dev.mishka.gamblerplus.client.Keybinds.lambda$register$0(java.lang.Runnable, dev.mishka.gamblerplus.client.Config, net.minecraft.class_310)
net.minecraft.class_304 dev.mishka.gamblerplus.client.Keybinds.openUi
net.minecraft.class_304 dev.mishka.gamblerplus.client.Keybinds.toggleGambling
net.minecraft.class_304 dev.mishka.gamblerplus.client.Keybinds.toggleHud
java.lang.Object.<init>()
java.lang.Runnable.run()
java.lang.invoke.LambdaMetafactory.metafactory(java.lang.invoke.MethodHandles$Lookup, java.lang.String, java.lang.invoke.MethodType, java.lang.invoke.MethodType, java.lang.invoke.MethodHandle, java.lang.invoke.MethodType) : java.lang.invoke.CallSite
net.fabricmc.fabric.api.event.Event net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents.END_CLIENT_TICK
net.fabricmc.fabric.api.client.keybinding.v1.KeyBindingHelper.registerKeyBinding(net.minecraft.class_304) : net.minecraft.class_304
net.fabricmc.fabric.api.event.Event.register(java.lang.Object)
net.minecraft.class_304.<init>(java.lang.String, net.minecraft.class_3675$class_307, int, net.minecraft.class_304$class_11900)
net.minecraft.class_304.method_1436() : boolean
net.minecraft.class_304$class_11900 net.minecraft.class_304$class_11900.field_62556
net.minecraft.class_312 net.minecraft.class_310.field_1729
net.minecraft.class_310.method_1551() : net.minecraft.class_310
net.minecraft.class_312.method_1613() : boolean
net.minecraft.class_3675$class_306 net.minecraft.class_3675.field_16237
net.minecraft.class_3675$class_306.method_1444() : int
net.minecraft.class_3675$class_307 net.minecraft.class_3675$class_307.field_1668

Text compiled into the class

key.gamblerplus.open
key.gamblerplus.toggle_mode
key.gamblerplus.toggle_hud