Interface PlayerEvent.CloseMenu
- Enclosing interface:
- PlayerEvent
public static interface PlayerEvent.CloseMenu
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close
(net.minecraft.world.entity.player.Player player, net.minecraft.world.inventory.AbstractContainerMenu menu) Invoked when a player closes a menu.
-
Method Details
-
close
void close(net.minecraft.world.entity.player.Player player, net.minecraft.world.inventory.AbstractContainerMenu menu) Invoked when a player closes a menu. Equivalent to Forge'sPlayerContainerEvent.Close
event.- Parameters:
player
- The player closing the menu.menu
- The menu that is closed.
-