Class MenuComponent

    • Constructor Detail

      • MenuComponent

        public MenuComponent​(Dimension dimension)
    • Method Detail

      • addAction

        public void addAction​(Position position,
                              java.util.function.Consumer<org.bukkit.entity.Player> action,
                              org.bukkit.event.inventory.ClickType type,
                              org.bukkit.event.inventory.ClickType... moreTypes)
      • removeAction

        public void removeAction​(Position position)
      • removeAllActions

        public void removeAllActions()
      • onClick

        public void onClick​(org.bukkit.entity.Player player,
                            org.bukkit.event.inventory.ClickType click,
                            Position position)
        Specified by:
        onClick in interface Component
      • draw

        public void draw​(org.bukkit.entity.Player player)
        Specified by:
        draw in interface Component
      • setAllowPlace

        public void setAllowPlace​(boolean allowPlace)
        Specified by:
        setAllowPlace in interface Component
      • setAllowDrag

        public void setAllowDrag​(boolean allowDrag)
        Specified by:
        setAllowDrag in interface Component
      • setAllowPickup

        public void setAllowPickup​(boolean allowPickup)
        Specified by:
        setAllowPickup in interface Component
      • createPlayerMap

        protected <T> java.util.Map<org.bukkit.entity.Player,​T> createPlayerMap​(java.util.function.Supplier<java.util.Map<org.bukkit.entity.Player,​T>> constructor)
      • createPlayerCollection

        protected <T extends java.util.Collection<org.bukkit.entity.Player>> T createPlayerCollection​(java.util.function.Supplier<T> constructor)
      • setClickHandler

        public void setClickHandler​(ClickHandler clickHandler)
      • setSlotUpdateHandler

        public void setSlotUpdateHandler​(SlotUpdateHandler slotUpdateHandler)
      • size

        public int size()
        Specified by:
        size in interface Component