Package net.minecraft.client
Class ToggleKeyMapping
java.lang.Object
net.minecraft.client.KeyMapping
net.minecraft.client.ToggleKeyMapping
- All Implemented Interfaces:
Comparable<KeyMapping>,IKeyMappingExtension
-
Field Summary
FieldsFields inherited from class net.minecraft.client.KeyMapping
CATEGORY_CREATIVE, CATEGORY_GAMEPLAY, CATEGORY_INTERFACE, CATEGORY_INVENTORY, CATEGORY_MISC, CATEGORY_MOVEMENT, CATEGORY_MULTIPLAYER, isDown -
Constructor Summary
ConstructorsConstructorDescriptionToggleKeyMapping(String pName, int pKeyCode, String pCategory, BooleanSupplier pNeedsToggle) -
Method Summary
Methods inherited from class net.minecraft.client.KeyMapping
click, compareTo, consumeClick, createNameSupplier, getCategory, getDefaultKey, getDefaultKeyModifier, getKey, getKeyConflictContext, getKeyModifier, getName, getTranslatedKeyMessage, isDefault, isUnbound, matches, matchesMouse, releaseAll, resetMapping, resetToggleKeys, same, saveString, set, setAll, setKey, setKeyConflictContext, setKeyModifierAndCodeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.neoforge.client.extensions.IKeyMappingExtension
getDisplayName, hasKeyModifierConflict, isActiveAndMatches, isConflictContextAndModifierActive, setToDefault
-
Field Details
-
needsToggle
-
-
Constructor Details
-
ToggleKeyMapping
-
-
Method Details
-
setDown
public void setDown(boolean pValue) - Overrides:
setDownin classKeyMapping
-
isDown
public boolean isDown()- Overrides:
isDownin classKeyMapping
-
reset
protected void reset()
-