Class KhazKeybind
java.lang.Object
com.khazoda.core.keybind.KhazKeybind
Common descriptor for a client-side Minecraft keybind. Supports pressed, held and held-in-GUI states.
Should work for all standard keyboard keys as well as mouse buttons
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.network.chat.ComponentReturns Minecraft's current display label for the bound input.static KhazKeybind.Builderbuilder(net.minecraft.resources.Identifier id) net.minecraft.resources.Identifiercategory()booleanReturns false when a keybind is unbound by default or by the playernet.minecraft.resources.Identifierid()booleanReturns true while the input is held, including inside UI screens.
-
Method Details
-
builder
-
id
public net.minecraft.resources.Identifier id() -
category
public net.minecraft.resources.Identifier category() -
isBoundInputHeldInUi
public boolean isBoundInputHeldInUi()Returns true while the input is held, including inside UI screens. Best for tooltip/gui item controls -
hasBoundInput
public boolean hasBoundInput()Returns false when a keybind is unbound by default or by the player -
boundInputLabel
public net.minecraft.network.chat.Component boundInputLabel()Returns Minecraft's current display label for the bound input. Good for tooltips to show user a dynamic input
-