promotional bannermobile promotional banner

SheepKeyLib

Provided key API on both server and client.

It implements key record, and support both key and mouse(mouse record can be closed in the config),

also it is used in my other mods.

Features:

This mod hook the InputEvent of client, record it on client and update to the server.

Using it, developers can visit the operations from client.

One of the user is SheepScriptLib, my another mod. Using it to post greater key event to the script.

Only works when there's no gui showing, will not work on chatting, backpack.

API:

saltsheep.keylib.key.PlayerKeyHandler

    Storing the player's key data in server.

saltsheep.keylib.key.PlayerKeyClientHandler

    Storing the player's key data in client.

saltsheep.keylib.key.PlayerKeyDownEvent, saltsheep.keylib.key.PlayerKeyUpEvent

    The event posted in server(forge bus).

The SheepKeyLib Team

profile avatar
  • 4
    Projects
  • 27.3K
    Downloads

More from saltfishsheep

  • RayCorrector project image

    RayCorrector

    • 67
    • Mods

    Make archery for shouldersurfing feasible.

    • 67
    • June 19, 2025
    • Mods
    • +1
  • GeoLoader project image

    GeoLoader

    • 75
    • Mods

    Load the models and animations of geckolib from resourcepack.

    • 75
    • April 27, 2025
    • Mods
    • +1
  • SheepScriptLib project image

    SheepScriptLib

    • 19.5K
    • Mods

    Based on CustomNpcs, it provides some useful tools.

    • 19.5K
    • April 27, 2025
    • Mods
  • RayCorrector project image

    RayCorrector

    • 67
    • Mods

    Make archery for shouldersurfing feasible.

    • 67
    • June 19, 2025
    • Mods
    • +1
  • GeoLoader project image

    GeoLoader

    • 75
    • Mods

    Load the models and animations of geckolib from resourcepack.

    • 75
    • April 27, 2025
    • Mods
    • +1
  • SheepScriptLib project image

    SheepScriptLib

    • 19.5K
    • Mods

    Based on CustomNpcs, it provides some useful tools.

    • 19.5K
    • April 27, 2025
    • Mods