Interface PlayerEvent.OpenMenu
- Enclosing interface:
- PlayerEvent
public static interface PlayerEvent.OpenMenu
-
Method Summary
Modifier and TypeMethodDescriptionvoid
open
(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.Open
event.- Parameters:
player
- The player opening the menu.menu
- The menu that is opened.
-