Class SurvivalSlimefunGuide
java.lang.Object
io.github.thebusybiscuit.slimefun4.implementation.guide.SurvivalSlimefunGuide
- All Implemented Interfaces:
SlimefunGuideImplementation
- Direct Known Subclasses:
CheatSheetSlimefunGuide
The
SurvivalSlimefunGuide
is the standard version of our SlimefunGuide
.
It uses an Inventory
to display SlimefunGuide
contents.- Author:
- TheBusyBiscuit
- See Also:
-
Constructor Summary
ConstructorDescriptionSurvivalSlimefunGuide
(boolean showVanillaRecipes, boolean showHiddenItemGroupsInSearch) -
Method Summary
Modifier and TypeMethodDescriptionvoid
createHeader
(Player p, PlayerProfile profile, ChestMenu menu) void
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
.getVisibleItemGroups
(Player p, PlayerProfile profile) protected final boolean
void
openItemGroup
(PlayerProfile profile, ItemGroup itemGroup, int page) void
openMainMenu
(PlayerProfile profile, int page) void
openSearch
(PlayerProfile profile, String input, boolean addToHistory) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.github.thebusybiscuit.slimefun4.core.guide.SlimefunGuideImplementation
unlockItem
-
Constructor Details
-
SurvivalSlimefunGuide
public SurvivalSlimefunGuide(boolean showVanillaRecipes, boolean showHiddenItemGroupsInSearch)
-
-
Method Details
-
getMode
Description copied from interface:SlimefunGuideImplementation
EverySlimefunGuideImplementation
can be associated with aSlimefunGuideMode
.- Specified by:
getMode
in interfaceSlimefunGuideImplementation
- Returns:
- The mode this
SlimefunGuideImplementation
represents
-
getItem
Description copied from interface:SlimefunGuideImplementation
Returns theItemStack
representation for thisSlimefunGuideImplementation
. In other words: TheItemStack
you hold in your hand and that you use to open yourSlimefunGuide
- Specified by:
getItem
in interfaceSlimefunGuideImplementation
- Returns:
- The
ItemStack
representation for thisSlimefunGuideImplementation
-
isSurvivalMode
protected final boolean isSurvivalMode() -
getVisibleItemGroups
@Nonnull protected List<ItemGroup> getVisibleItemGroups(@Nonnull Player p, @Nonnull PlayerProfile profile) - Parameters:
p
- ThePlayer
who opened hisSlimefunGuide
profile
- ThePlayerProfile
of thePlayer
- Returns:
- a
List
of visibleItemGroup
instances
-
openMainMenu
- Specified by:
openMainMenu
in interfaceSlimefunGuideImplementation
-
openItemGroup
@ParametersAreNonnullByDefault public void openItemGroup(PlayerProfile profile, ItemGroup itemGroup, int page) - Specified by:
openItemGroup
in interfaceSlimefunGuideImplementation
-
openSearch
@ParametersAreNonnullByDefault public void openSearch(PlayerProfile profile, String input, boolean addToHistory) - Specified by:
openSearch
in interfaceSlimefunGuideImplementation
-
displayItem
@ParametersAreNonnullByDefault public void displayItem(PlayerProfile profile, ItemStack item, int index, boolean addToHistory) - Specified by:
displayItem
in interfaceSlimefunGuideImplementation
-
displayItem
@ParametersAreNonnullByDefault public void displayItem(PlayerProfile profile, SlimefunItem item, boolean addToHistory) - Specified by:
displayItem
in interfaceSlimefunGuideImplementation
-
createHeader
@ParametersAreNonnullByDefault public void createHeader(Player p, PlayerProfile profile, ChestMenu menu)
-