Interface SlimefunGuideImplementation
- All Known Implementing Classes:
CheatSheetSlimefunGuide
,SurvivalSlimefunGuide
public interface SlimefunGuideImplementation
This interface is used for the different implementations that add behaviour
to the
SlimefunGuide
.- Author:
- TheBusyBiscuit
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
displayItem
(PlayerProfile profile, SlimefunItem item, boolean addToHistory) void
displayItem
(PlayerProfile profile, ItemStack item, int index, boolean addToHistory) getItem()
Returns theItemStack
representation for thisSlimefunGuideImplementation
.getMode()
EverySlimefunGuideImplementation
can be associated with aSlimefunGuideMode
.void
openItemGroup
(PlayerProfile profile, ItemGroup group, int page) void
openMainMenu
(PlayerProfile profile, int page) void
openSearch
(PlayerProfile profile, String input, boolean addToHistory) default void
unlockItem
(Player p, SlimefunItem sfitem, Consumer<Player> callback)
-
Method Details
-
getMode
EverySlimefunGuideImplementation
can be associated with aSlimefunGuideMode
.- Returns:
- The mode this
SlimefunGuideImplementation
represents
-
getItem
Returns theItemStack
representation for thisSlimefunGuideImplementation
. In other words: TheItemStack
you hold in your hand and that you use to open yourSlimefunGuide
- Returns:
- The
ItemStack
representation for thisSlimefunGuideImplementation
-
openMainMenu
-
openItemGroup
-
openSearch
@ParametersAreNonnullByDefault void openSearch(PlayerProfile profile, String input, boolean addToHistory) -
displayItem
@ParametersAreNonnullByDefault void displayItem(PlayerProfile profile, ItemStack item, int index, boolean addToHistory) -
displayItem
@ParametersAreNonnullByDefault void displayItem(PlayerProfile profile, SlimefunItem item, boolean addToHistory) -
unlockItem
@ParametersAreNonnullByDefault default void unlockItem(Player p, SlimefunItem sfitem, Consumer<Player> callback)
-