Package net.minecraftforge.client.event
Class ScreenEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.ScreenEvent
- Direct Known Subclasses:
- ScreenEvent.BackgroundRendered,- ScreenEvent.CharacterTyped,- ScreenEvent.Closing,- ScreenEvent.Init,- ScreenEvent.KeyInput,- ScreenEvent.MouseInput,- ScreenEvent.Opening,- ScreenEvent.Render,- ScreenEvent.RenderInventoryMobEffects
public abstract class ScreenEvent
extends net.minecraftforge.eventbus.api.Event
Fired on different events/actions when a 
Screen is active and visible.
 See the various subclasses for listening to different events.
 These events are fired on the main Forge event bus, only on the logical client.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classFired directly after the background of the screen is drawn.static classFired when a keyboard key corresponding to a character is typed.static classFired before aScreenis closed.static classFired when a screen is being initialized.private static classFired whenever a keyboard key is pressed or released.static classFired when a keyboard key is pressed.static classFired when a keyboard key is released.static classFired when a mouse button is pressed.static classFired when a mouse button is released.static classFired when the mouse was dragged while a button is being held down.private static classFired whenever an action is performed by the mouse.static classFired when the mouse was dragged while a button is being held down.static classFired before anyScreenis opened, to allow changing it or preventing it from being opened.static classFired when a screen is being drawn.static classFired ahead of rendering any active mob effects in theinventory screen.Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Eventnet.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class net.minecraftforge.eventbus.api.EventgetListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
- 
Field Details- 
screen
 
- 
- 
Constructor Details- 
ScreenEvent
 
- 
- 
Method Details- 
getScreenReturns the screen that caused this event.- Returns:
- the screen that caused this event
 
 
-