Class NavigationItem
- java.lang.Object
-
- com.mrivanplays.pagedinventory.api.NavigationItem
-
public final class NavigationItem extends Object
Represents a navigation item
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NavigationItem.Action
Represents action
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NavigationItem
create(@NotNull org.bukkit.inventory.ItemStack item, @NotNull NavigationItem.Action action)
Creates a newNavigationItem
@NotNull NavigationItem.Action
getAction()
Returns theNavigationItem.Action
for which the item will trigger.@NotNull org.bukkit.inventory.ItemStack
getItem()
Returns the actualItemStack
of the navigation item.
-
-
-
Method Detail
-
create
public static NavigationItem create(@NotNull @NotNull org.bukkit.inventory.ItemStack item, @NotNull @NotNull NavigationItem.Action action)
Creates a newNavigationItem
- Parameters:
item
- the actual itemaction
- the action which the navigation item should listen for- Returns:
- navigation item
-
getItem
@NotNull public @NotNull org.bukkit.inventory.ItemStack getItem()
Returns the actualItemStack
of the navigation item.- Returns:
- item
-
getAction
@NotNull public @NotNull NavigationItem.Action getAction()
Returns theNavigationItem.Action
for which the item will trigger.- Returns:
- action
-
-