Class MenuIconsAccess<M extends Menu<M>>
java.lang.Object
com.kamikazejam.kamicommon.menu.api.icons.access.MenuIconsAccess<M>
- All Implemented Interfaces:
IMenuIconsAccess<M>
-
Constructor Summary
ConstructorsConstructorDescriptionMenuIconsAccess
(@NotNull MenuSize menuSize, @NotNull PrioritizedMenuIconMap<M> menuIcons) -
Method Summary
Modifier and TypeMethodDescriptionvoid
getMenuIcon
(int slot) Retrieve aMenuIcon
by a slot number.getMenuIcon
(@NotNull PositionIconSlot slot) Retrieve aMenuIcon
by a position.getMenuIcon
(@NotNull String id) Retrieve aMenuIcon
by its idboolean
hasMenuIcon
(int slot) boolean
hasMenuIcon
(@NotNull PositionIconSlot slot) boolean
isValidMenuIconID
(@NotNull String id) removeMenuIcon
(int slot) removeMenuIcon
(@NotNull String id) setMenuIcon
(@NotNull MenuIcon<M> menuIcon, @Nullable IconSlot iconSlot) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.kamikazejam.kamicommon.menu.api.icons.access.IMenuIconsAccess
getMenuIcon, hasMenuIcon, setAutoUpdate, setAutoUpdate, setMenuClick, setMenuIcon, setMenuIcon, setMenuIcon, setMenuIcon, setMenuIcon, setMenuIcon, setMenuIcon, setMenuIcon, setMenuIcon, setMenuIcon, setMenuIcon, setMenuIcon, setMenuIcon, setMenuIcon, setMenuIcon, setMenuIcon, setMenuIcon, setModifier, setModifier
-
Constructor Details
-
Method Details
-
removeMenuIcon
- Specified by:
removeMenuIcon
in interfaceIMenuIconsAccess<M extends Menu<M>>
-
removeMenuIcon
- Specified by:
removeMenuIcon
in interfaceIMenuIconsAccess<M extends Menu<M>>
-
clearMenuIcons
public void clearMenuIcons()- Specified by:
clearMenuIcons
in interfaceIMenuIconsAccess<M extends Menu<M>>
-
getMenuIcon
Description copied from interface:IMenuIconsAccess
Retrieve aMenuIcon
by its id- Specified by:
getMenuIcon
in interfaceIMenuIconsAccess<M extends Menu<M>>
-
isValidMenuIconID
- Specified by:
isValidMenuIconID
in interfaceIMenuIconsAccess<M extends Menu<M>>
-
getMenuIconIDs
- Specified by:
getMenuIconIDs
in interfaceIMenuIconsAccess<M extends Menu<M>>
-
getMenuIcon
Description copied from interface:IMenuIconsAccess
Retrieve aMenuIcon
by a slot number. If the filler MenuIconhas been configured and is enabled, it will be returned if no other MenuIcon is found for the slot. - Specified by:
getMenuIcon
in interfaceIMenuIconsAccess<M extends Menu<M>>
-
hasMenuIcon
public boolean hasMenuIcon(int slot) - Specified by:
hasMenuIcon
in interfaceIMenuIconsAccess<M extends Menu<M>>