Interface IMenuIconsAccess<M extends Menu<M>>

All Known Implementing Classes:
MenuIconsAccess

public interface IMenuIconsAccess<M extends Menu<M>>
  • Method Details

    • setMenuIcon

      @NotNull default @NotNull MenuIcon<M> setMenuIcon(@NotNull @NotNull ItemBuilder builder, int slot)
    • setMenuIcon

      @NotNull default @NotNull MenuIcon<M> setMenuIcon(@NotNull @NotNull ItemBuilder builder, @NotNull @NotNull IconSlot slot)
    • setMenuIcon

      @NotNull default @NotNull MenuIcon<M> setMenuIcon(@NotNull @NotNull ItemStack stack, int slot)
    • setMenuIcon

      @NotNull default @NotNull MenuIcon<M> setMenuIcon(@NotNull @NotNull ItemStack stack, @NotNull @NotNull IconSlot slot)
    • setMenuIcon

      @NotNull default @NotNull MenuIcon<M> setMenuIcon(@NotNull @NotNull String id, @NotNull @NotNull ItemBuilder builder, int slot)
    • setMenuIcon

      @NotNull default @NotNull MenuIcon<M> setMenuIcon(@NotNull @NotNull String id, @NotNull @NotNull ItemStack stack, int slot)
    • setMenuIcon

      @NotNull default @NotNull MenuIcon<M> setMenuIcon(@NotNull @NotNull String id, @NotNull @NotNull ItemBuilder builder, @NotNull @NotNull IconSlot slot)
    • setMenuIcon

      @NotNull default @NotNull MenuIcon<M> setMenuIcon(@NotNull @NotNull String id, @NotNull @NotNull ItemStack stack, @NotNull @NotNull IconSlot slot)
    • setMenuIcon

      @NotNull default @NotNull MenuIcon<M> setMenuIcon(@NotNull @NotNull ConfigurationSection section, @NotNull @NotNull String key, @Nullable @Nullable Player player)
    • setMenuIcon

      @NotNull default @NotNull MenuIcon<M> setMenuIcon(@NotNull @NotNull ConfigurationSection section, @NotNull @NotNull String key)
    • setMenuIcon

      @NotNull default @NotNull MenuIcon<M> setMenuIcon(@NotNull @NotNull ConfigurationSection section, @Nullable @Nullable Player player)
    • setMenuIcon

      @NotNull default @NotNull MenuIcon<M> setMenuIcon(@NotNull @NotNull ConfigurationSection section)
    • setMenuIcon

      @NotNull @NotNull MenuIcon<M> setMenuIcon(@NotNull @NotNull MenuIcon<M> menuIcon, @Nullable @Nullable IconSlot slot)
    • setMenuIcon

      @NotNull default @NotNull MenuIcon<M> setMenuIcon(@NotNull @NotNull String id, @NotNull @NotNull MenuIcon<M> menuIcon, @Nullable @Nullable IconSlot slot)
    • removeMenuIcon

      @Nullable @Nullable MenuIcon<M> removeMenuIcon(@NotNull @NotNull String id)
    • removeMenuIcon

      @Nullable @Nullable Set<MenuIcon<M>> removeMenuIcon(int slot)
    • clearMenuIcons

      void clearMenuIcons()
    • getMenuIcon

      @NotNull @NotNull Optional<MenuIcon<M>> getMenuIcon(@NotNull @NotNull String id)
      Retrieve a MenuIcon by its id
    • setMenuClick

      @NotNull default @NotNull IMenuIconsAccess<M> setMenuClick(@NotNull @NotNull String id, @NotNull @NotNull MenuClick<M> click)
    • setModifier

      @NotNull default @NotNull IMenuIconsAccess<M> setModifier(@NotNull @NotNull String id, @NotNull @NotNull StaticIconModifier modifier)
    • setModifier

      @NotNull default @NotNull IMenuIconsAccess<M> setModifier(@NotNull @NotNull String id, @NotNull @NotNull StatefulIconModifier modifier)
    • setAutoUpdate

      @NotNull default @NotNull IMenuIconsAccess<M> setAutoUpdate(@NotNull @NotNull String id, @NotNull @NotNull StaticIconModifier modifier, int tickInterval)
    • setAutoUpdate

      @NotNull default @NotNull IMenuIconsAccess<M> setAutoUpdate(@NotNull @NotNull String id, @NotNull @NotNull StatefulIconModifier modifier, int tickInterval)
    • isValidMenuIconID

      boolean isValidMenuIconID(@NotNull @NotNull String id)
    • getMenuIconIDs

      @NotNull @NotNull Set<String> getMenuIconIDs()
    • getMenuIcon

      @NotNull @NotNull Optional<MenuIcon<M>> getMenuIcon(int slot)
      Retrieve a MenuIcon by a slot number. If the filler MenuIcon has been configured and is enabled, it will be returned if no other MenuIcon is found for the slot.
    • hasMenuIcon

      boolean hasMenuIcon(int slot)
    • setMenuIcon

      @NotNull default @NotNull MenuIcon<M> setMenuIcon(@NotNull @NotNull ItemBuilder builder, int row, int col)
    • setMenuIcon

      @NotNull default @NotNull MenuIcon<M> setMenuIcon(@NotNull @NotNull ItemStack stack, int row, int col)
    • setMenuIcon

      @NotNull default @NotNull MenuIcon<M> setMenuIcon(@NotNull @NotNull String id, @NotNull @NotNull ItemBuilder builder, int row, int col)
    • setMenuIcon

      @NotNull default @NotNull MenuIcon<M> setMenuIcon(@NotNull @NotNull String id, @NotNull @NotNull ItemStack stack, int row, int col)
    • getMenuIcon

      @NotNull default @NotNull Optional<MenuIcon<M>> getMenuIcon(int row, int col)
      Retrieve a MenuIcon by a position. If the filler MenuIcon has been configured and is enabled, it will be returned if no other MenuIcon is found for the position.
      Parameters:
      row - The row of the position (top to bottom) (1-indexed)
      col - The column of the position (left to right) (1-indexed)
    • getMenuIcon

      @NotNull @NotNull Optional<MenuIcon<M>> getMenuIcon(@NotNull @NotNull PositionIconSlot slot)
      Retrieve a MenuIcon by a position. If the filler MenuIcon has been configured and is enabled, it will be returned if no other MenuIcon is found for the position.
      Parameters:
      slot - The position slot
    • hasMenuIcon

      default boolean hasMenuIcon(int row, int col)
      Parameters:
      row - The row of the position (top to bottom) (1-indexed)
      col - The column of the position (left to right) (1-indexed)
    • hasMenuIcon

      boolean hasMenuIcon(@NotNull @NotNull PositionIconSlot slot)
      Parameters:
      slot - The position slot