Interface PlayerEvent.OpenMenu
- Enclosing interface:
 - PlayerEvent
 
public static interface PlayerEvent.OpenMenu
- 
Method Summary
Modifier and TypeMethodDescriptionvoidopen(net.minecraft.world.entity.player.Player player, net.minecraft.world.inventory.AbstractContainerMenu menu) Invoked when a player opens a menu. 
- 
Method Details
- 
open
void open(net.minecraft.world.entity.player.Player player, net.minecraft.world.inventory.AbstractContainerMenu menu) Invoked when a player opens a menu. Equivalent to Forge'sPlayerContainerEvent.Openevent.- Parameters:
 player- The player opening the menu.menu- The menu that is opened.
 
 -