Class SlimefunGuide
java.lang.Object
io.github.thebusybiscuit.slimefun4.core.guide.SlimefunGuide
This is a static utility class that provides convenient access to the methods
of
SlimefunGuideImplementation
that abstracts away the actual implementation.- Author:
- TheBusyBiscuit
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
displayItem
(PlayerProfile profile, SlimefunItem item, boolean addToHistory) static void
displayItem
(PlayerProfile profile, ItemStack item, boolean addToHistory) static SlimefunGuideMode
Get the default mode for the Slimefun guide.static ItemStack
getItem
(SlimefunGuideMode design) static boolean
isGuideItem
(ItemStack item) This method checks if a givenItemStack
is aSlimefunGuide
.static void
static void
openGuide
(Player p, SlimefunGuideMode mode) static void
static void
openItemGroup
(PlayerProfile profile, ItemGroup itemGroup, SlimefunGuideMode mode, int selectedPage) static void
openMainMenu
(PlayerProfile profile, SlimefunGuideMode mode, int selectedPage) static void
openSearch
(PlayerProfile profile, String input, SlimefunGuideMode mode, boolean addToHistory)
-
Method Details
-
getItem
-
openCheatMenu
-
openGuide
-
openGuide
-
openMainMenu
@ParametersAreNonnullByDefault public static void openMainMenu(PlayerProfile profile, SlimefunGuideMode mode, int selectedPage) -
openItemGroup
@ParametersAreNonnullByDefault public static void openItemGroup(PlayerProfile profile, ItemGroup itemGroup, SlimefunGuideMode mode, int selectedPage) -
openSearch
@ParametersAreNonnullByDefault public static void openSearch(PlayerProfile profile, String input, SlimefunGuideMode mode, boolean addToHistory) -
displayItem
@ParametersAreNonnullByDefault public static void displayItem(PlayerProfile profile, ItemStack item, boolean addToHistory) -
displayItem
@ParametersAreNonnullByDefault public static void displayItem(PlayerProfile profile, SlimefunItem item, boolean addToHistory) -
isGuideItem
This method checks if a givenItemStack
is aSlimefunGuide
.- Parameters:
item
- TheItemStack
to check- Returns:
- Whether this
ItemStack
represents aSlimefunGuide
-
getDefaultMode
Get the default mode for the Slimefun guide. Currently this is onlySlimefunGuideMode.SURVIVAL_MODE
.- Returns:
- The default
SlimefunGuideMode
.
-