Class RemoveKeybindPacket

java.lang.Object
dev.munebase.dynamickeybinds.network.RemoveKeybindPacket

public class RemoveKeybindPacket extends Object
Network packet sent from client to server to request removing a keybind. Allows clients to unregister a previously added keybind. The keybind is removed from the server-side registry and the removal is synchronized to all clients.

Direction: Client -> Server

Handler: Server-side keybind handler (ForgeServerKeybindHandler or FabricServerKeybindHandler)

  • Constructor Details

    • RemoveKeybindPacket

      public RemoveKeybindPacket(String id)
      Construct a new RemoveKeybindPacket.
      Parameters:
      id - the keybind ID to remove
  • Method Details

    • getId

      public String getId()
      Get the keybind ID to remove.
      Returns:
      the keybind identifier