Class TrainerCardKey
java.lang.Object
net.minecraft.client.KeyMapping
com.pixelmonmod.pixelmon.client.keybindings.TrainerCardKey
- All Implemented Interfaces:
Comparable<net.minecraft.client.KeyMapping>
,net.minecraftforge.client.extensions.IForgeKeyMapping
public class TrainerCardKey
extends net.minecraft.client.KeyMapping
Opens the players Trainer Card when clicked. If looking at another player, it opens their Trainer Card.
-
Field Summary
Fields inherited from class net.minecraft.client.KeyMapping
CATEGORY_CREATIVE, CATEGORY_GAMEPLAY, CATEGORY_INTERFACE, CATEGORY_INVENTORY, CATEGORY_MISC, CATEGORY_MOVEMENT, CATEGORY_MULTIPLAYER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
keyDown
(net.minecraftforge.client.event.InputEvent.Key event) Opens the Trainer Card GUI and then sends a packet to the server to update said GUI.Methods inherited from class net.minecraft.client.KeyMapping
click, compareTo, consumeClick, createNameSupplier, getCategory, getDefaultKey, getDefaultKeyModifier, getKey, getKeyConflictContext, getKeyModifier, getName, getTranslatedKeyMessage, isDefault, isDown, isUnbound, matches, matchesMouse, releaseAll, resetMapping, resetToggleKeys, same, saveString, set, setAll, setDown, setKey, setKeyConflictContext, setKeyModifierAndCode
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraftforge.client.extensions.IForgeKeyMapping
hasKeyModifierConflict, isActiveAndMatches, isConflictContextAndModifierActive, setToDefault
-
Constructor Details
-
TrainerCardKey
public TrainerCardKey()Initializes the hotkey.
-
-
Method Details
-
keyDown
public void keyDown(net.minecraftforge.client.event.InputEvent.Key event) Opens the Trainer Card GUI and then sends a packet to the server to update said GUI.- Parameters:
event
- The triggering keyboard event.
-