Class InputEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.InputEvent
Direct Known Subclasses:
InputEvent.InteractionKeyMappingTriggered, InputEvent.Key, InputEvent.MouseButton, InputEvent.MouseScrollingEvent

public abstract class InputEvent extends net.minecraftforge.eventbus.api.Event
Fired when an input is detected from the user's input devices. See the various subclasses to listen for specific devices and inputs.
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Fired when a keymapping that by default involves clicking the mouse buttons is triggered.
    static class 
    Fired when a keyboard key input occurs, such as pressing, releasing, or repeating a key.
    static class 
    Fired when a mouse button is pressed/released.
    static class 
    Fired when a mouse scroll wheel is used outside of a screen and a player is loaded, before being processed by vanilla.

    Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event

    net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Methods inherited from class net.minecraftforge.eventbus.api.Event

    getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • InputEvent

      @Internal protected InputEvent()