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 TypeMethodDescriptionvoiddisplayItem(PlayerProfile profile, SlimefunItem item, boolean addToHistory) voiddisplayItem(PlayerProfile profile, ItemStack item, int index, boolean addToHistory) getItem()Returns theItemStackrepresentation for thisSlimefunGuideImplementation.getMode()EverySlimefunGuideImplementationcan be associated with aSlimefunGuideMode.voidopenItemGroup(PlayerProfile profile, ItemGroup group, int page) voidopenMainMenu(PlayerProfile profile, int page) voidopenSearch(PlayerProfile profile, String input, boolean addToHistory) default voidunlockItem(Player p, SlimefunItem sfitem, Consumer<Player> callback)
-
Method Details
-
getMode
EverySlimefunGuideImplementationcan be associated with aSlimefunGuideMode.- Returns:
- The mode this
SlimefunGuideImplementationrepresents
-
getItem
Returns theItemStackrepresentation for thisSlimefunGuideImplementation. In other words: TheItemStackyou hold in your hand and that you use to open yourSlimefunGuide- Returns:
- The
ItemStackrepresentation 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)
-