Class Icon

java.lang.Object
net.tnemc.menu.core.icon.Icon
All Implemented Interfaces:
ConstraintHolder
Direct Known Subclasses:
StateIcon

public class Icon extends Object implements ConstraintHolder
Icon
Since:
1.5.0.0
Author:
creatorfromhell
  • Field Details

    • actions

      protected final List<IconAction> actions
    • constraints

      protected final Map<String,String> constraints
    • item

      protected final net.tnemc.item.AbstractItemStack<?> item
    • slot

      protected int slot
    • itemProvider

      protected final Function<MenuPlayer,net.tnemc.item.AbstractItemStack<?>> itemProvider
    • click

      protected Consumer<MenuClickHandler> click
  • Constructor Details

    • Icon

      public Icon(@NotNull @NotNull net.tnemc.item.AbstractItemStack<?> item, @Nullable @Nullable Function<MenuPlayer,net.tnemc.item.AbstractItemStack<?>> itemProvider)
  • Method Details