Interface Popup

All Superinterfaces:
HudObject

public interface Popup extends HudObject
Represents popup.
  • Method Details

    • getGroupName

      @NotNull @NotNull String getGroupName()
      Gets a group name of popup.
      Returns:
      group name.
    • getMaxStack

      int getMaxStack()
      Gets a popup's max stack size
      Returns:
      max stack size
    • show

      @Nullable @Nullable PopupUpdater show(@NotNull @NotNull UpdateEvent reason, @NotNull @NotNull HudPlayer player)
      Shows popup to some player.
      Parameters:
      reason - causes
      player - target player
      Returns:
      updater of popup or null if showing has failed.
    • hide

      default boolean hide(@NotNull @NotNull HudPlayer player)
      Hides popup to some player.
      Parameters:
      player - target player
      Returns:
      whether to success
    • getLastIndex

      default int getLastIndex()
      Gets a last index of the popup. It equals getMaxStack() - 1
      Returns:
      last index
    • frameType

      @NotNull @NotNull Popup.FrameType frameType()
      Gets a frame type.
      Returns:
      frame type