java.lang.Object
net.minecraft.client.KeyMapping
com.pixelmonmod.pixelmon.client.keybindings.PixelmonKeyMapping
com.pixelmonmod.pixelmon.client.keybindings.WikiKey
All Implemented Interfaces:
Comparable<net.minecraft.client.KeyMapping>, net.minecraftforge.client.extensions.IForgeKeyMapping

public class WikiKey extends PixelmonKeyMapping
Opens the Pokédex or the wiki when a hotkey is pressed depending on what the player is looking at.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The base URL of the Pixelmon wiki.

    Fields inherited from class net.minecraft.client.KeyMapping

    CATEGORY_CREATIVE, CATEGORY_GAMEPLAY, CATEGORY_INTERFACE, CATEGORY_INVENTORY, CATEGORY_MISC, CATEGORY_MOVEMENT, CATEGORY_MULTIPLAYER
  • Constructor Summary

    Constructors
    Constructor
    Description
    Initializes the hotkey.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    static void
    Opens the Pokédex or the wiki depending on what the player is looking at.

    Methods inherited from class com.pixelmonmod.pixelmon.client.keybindings.PixelmonKeyMapping

    handle, keyDown, keyPressed, onMouseButton

    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
  • Field Details

  • Constructor Details

    • WikiKey

      public WikiKey()
      Initializes the hotkey.
  • Method Details

    • handleKeyPress

      protected void handleKeyPress()
      Specified by:
      handleKeyPress in class PixelmonKeyMapping
    • openWiki

      public static void openWiki()
      Opens the Pokédex or the wiki depending on what the player is looking at.