Class ScreenOpenEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.ScreenOpenEvent

public class ScreenOpenEvent extends net.minecraftforge.eventbus.api.Event
This event is called before any Screen will open. If you don't want this to happen, cancel the event. If you want to override this Screen, simply set the screen variable to your own Screen.
  • Nested Class Summary

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

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

    Fields
    Modifier and Type
    Field
    Description
    private Screen
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
    setScreen(Screen screen)
     

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

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

    Methods inherited from class java.lang.Object

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

    • screen

      private Screen screen
  • Constructor Details

    • ScreenOpenEvent

      public ScreenOpenEvent(Screen screen)
  • Method Details

    • getScreen

      public Screen getScreen()
    • setScreen

      public void setScreen(Screen screen)