Interface PlayerEvent.OpenMenu

Enclosing interface:
PlayerEvent

public static interface PlayerEvent.OpenMenu
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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's PlayerContainerEvent.Open event.
      Parameters:
      player - The player opening the menu.
      menu - The menu that is opened.