Interface IContainerButtonAction<C extends net.minecraft.world.inventory.AbstractContainerMenu>


public interface IContainerButtonAction<C extends net.minecraft.world.inventory.AbstractContainerMenu>
A server-side button action.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onAction(String buttonId, C container)
    Called when the button with the given id was clicked client-side.
  • Method Details

    • onAction

      void onAction(String buttonId, C container)
      Called when the button with the given id was clicked client-side.
      Parameters:
      buttonId - The button id.
      container - The container in which the button was clicked.