Interface GuiEvent.SetScreen
- Enclosing interface:
 - GuiEvent
 
@Environment(CLIENT)
public static interface GuiEvent.SetScreen
- 
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.InteractionResultHolder<net.minecraft.client.gui.screens.Screen>modifyScreen(net.minecraft.client.gui.screens.Screen screen) Invoked before a new screen is set to open. 
- 
Method Details
- 
modifyScreen
net.minecraft.world.InteractionResultHolder<net.minecraft.client.gui.screens.Screen> modifyScreen(net.minecraft.client.gui.screens.Screen screen) Invoked before a new screen is set to open. Equivalent to Forge'sGuiOpenEventevent.- Parameters:
 screen- The screen that is going to be opened.- Returns:
 - A 
InteractionResultHolderdetermining the outcome of the event, if an outcome is set, the vanilla screen is overridden. 
 
 -