Interface IMenuIconsAccess<M extends Menu<M>>
- All Known Implementing Classes:
MenuIconsAccess
public interface IMenuIconsAccess<M extends Menu<M>>
-
Method Summary
Modifier and TypeMethodDescriptionvoid
getMenuIcon
(int slot) Retrieve aMenuIcon
by a slot number.getMenuIcon
(int row, int col) Retrieve aMenuIcon
by a position.getMenuIcon
(@NotNull PositionIconSlot slot) Retrieve aMenuIcon
by a position.getMenuIcon
(@NotNull String id) Retrieve aMenuIcon
by its idboolean
hasMenuIcon
(int slot) default boolean
hasMenuIcon
(int row, int col) boolean
hasMenuIcon
(@NotNull PositionIconSlot slot) boolean
isValidMenuIconID
(@NotNull String id) removeMenuIcon
(int slot) removeMenuIcon
(@NotNull String id) default @NotNull IMenuIconsAccess
<M> setAutoUpdate
(@NotNull String id, @NotNull StatefulIconModifier modifier, int tickInterval) default @NotNull IMenuIconsAccess
<M> setAutoUpdate
(@NotNull String id, @NotNull StaticIconModifier modifier, int tickInterval) default @NotNull IMenuIconsAccess
<M> setMenuClick
(@NotNull String id, @NotNull MenuClick<M> click) setMenuIcon
(@NotNull ItemBuilder builder, int slot) setMenuIcon
(@NotNull ItemBuilder builder, int row, int col) setMenuIcon
(@NotNull ItemBuilder builder, @NotNull IconSlot slot) setMenuIcon
(@NotNull MenuIcon<M> menuIcon, @Nullable IconSlot slot) setMenuIcon
(@NotNull ConfigurationSection section) setMenuIcon
(@NotNull ConfigurationSection section, @NotNull String key) setMenuIcon
(@NotNull ConfigurationSection section, @NotNull String key, @Nullable Player player) setMenuIcon
(@NotNull ConfigurationSection section, @Nullable Player player) setMenuIcon
(@NotNull String id, @NotNull ItemBuilder builder, int slot) setMenuIcon
(@NotNull String id, @NotNull ItemBuilder builder, int row, int col) setMenuIcon
(@NotNull String id, @NotNull ItemBuilder builder, @NotNull IconSlot slot) setMenuIcon
(@NotNull String id, @NotNull MenuIcon<M> menuIcon, @Nullable IconSlot slot) setMenuIcon
(@NotNull String id, @NotNull ItemStack stack, int slot) setMenuIcon
(@NotNull String id, @NotNull ItemStack stack, int row, int col) setMenuIcon
(@NotNull String id, @NotNull ItemStack stack, @NotNull IconSlot slot) setMenuIcon
(@NotNull ItemStack stack, int slot) setMenuIcon
(@NotNull ItemStack stack, int row, int col) setMenuIcon
(@NotNull ItemStack stack, @NotNull IconSlot slot) default @NotNull IMenuIconsAccess
<M> setModifier
(@NotNull String id, @NotNull StatefulIconModifier modifier) default @NotNull IMenuIconsAccess
<M> setModifier
(@NotNull String id, @NotNull StaticIconModifier modifier)
-
Method Details
-
setMenuIcon
-
setMenuIcon
-
setMenuIcon
@NotNull default @NotNull MenuIcon<M> setMenuIcon(@NotNull @NotNull String id, @NotNull @NotNull ItemBuilder builder, int slot) -
setMenuIcon
-
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
-
removeMenuIcon
-
removeMenuIcon
-
clearMenuIcons
void clearMenuIcons() -
getMenuIcon
Retrieve aMenuIcon
by its id -
isValidMenuIconID
-
getMenuIconIDs
-
getMenuIcon
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. -
hasMenuIcon
boolean hasMenuIcon(int slot) -
setMenuIcon
@NotNull default @NotNull MenuIcon<M> setMenuIcon(@NotNull @NotNull ItemBuilder builder, int row, int col) -
setMenuIcon
-
setMenuIcon
@NotNull default @NotNull MenuIcon<M> setMenuIcon(@NotNull @NotNull String id, @NotNull @NotNull ItemBuilder builder, int row, int col) -
setMenuIcon
-
getMenuIcon
Retrieve aMenuIcon
by a position. If the filler MenuIconhas 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)
-
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)
-