Class NavigationItem


  • public final class NavigationItem
    extends Object
    Represents a navigation item
    • Method Detail

      • create

        public static NavigationItem create​(@NotNull
                                            @NotNull org.bukkit.inventory.ItemStack item,
                                            @NotNull
                                            @NotNull NavigationItem.Action action)
        Creates a new NavigationItem
        Parameters:
        item - the actual item
        action - the action which the navigation item should listen for
        Returns:
        navigation item
      • getItem

        @NotNull
        public @NotNull org.bukkit.inventory.ItemStack getItem()
        Returns the actual ItemStack of the navigation item.
        Returns:
        item