Class RebarGuide
-
- All Implemented Interfaces:
-
io.github.pylonmc.rebar.item.base.RebarCooldownable,io.github.pylonmc.rebar.item.base.RebarInteractor,net.kyori.adventure.key.Keyed,org.bukkit.Keyed
public final class RebarGuide extends RebarItem implements RebarInteractor
The one and only Rebar guide.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classRebarGuide.Companion
-
Field Summary
Fields Modifier and Type Field Description public final static NamespacedKeyKEYpublic final static ItemStackSTACKpublic final static RebarGuide.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description RebarGuide(ItemStack stack)
-
Method Summary
Modifier and Type Method Description final ItemStackgetStack()final RebarItemSchemagetSchema()Additional data about the item's type. final StringgetResearchBypassPermission()final RebarAddongetAddon()final NamespacedKeygetRebarBlock()final BooleanisDisabled()final ResearchgetResearch()BooleanrespectCooldown()voidonUsedToClick(PlayerInteractEvent event, EventPriority priority)Called when a player right clicks with the item in either main or off hand. final static AddonResearchesPageaddonResearchesPage(RebarAddon addon)final static AddonPageButtonaddonResearchesButton(RebarAddon addon)final static ResearchItemsPageresearchItemsPage(Research research)final static ItemIngredientsPageingredientsPage(FluidOrItem input)final static PageButtoningredientsButton(FluidOrItem input)final static IteminfoButton(FluidOrItem input)final static voidhideItem(NamespacedKey key)Hide an item from showing up in searches final static voidhideItemUnlessAdmin(NamespacedKey key)Hide an item from showing up in searches unless a player has the rebar.guide.cheatpermissionfinal static voidhideFluid(NamespacedKey key)Hide a fluid from showing up in searches final static voidhideResearch(NamespacedKey key)Hide a fluid from showing up in searches final static SimpleInfoPagegetOrCreateInfoPage(NamespacedKey key)Returns the info page menu for an item or fluid. final static SimpleInfoPagegetInfoPage(NamespacedKey key)Returns the info page menu for an item or fluid. final static voidopen(Player player)Opens the guide to the last page that the player was on final static Map<UUID, List<GuidePage>>getHistory()Keeps track of the pages the player last visited Resets when the player ends up on the root page final static Set<NamespacedKey>getHiddenItems()Hidden items do not show up in searches final static Set<NamespacedKey>getAdminOnlyItems()Admin items do not show up in searches unless a player has the rebar.guide.cheatpermissionfinal static Set<NamespacedKey>getHiddenFluids()Hidden fluids do not show up in searches final static Set<NamespacedKey>getHiddenResearches()Hidden researches do not show up in the researches category final static Map<NamespacedKey, SimpleInfoPage>getInfoPages()final static SimpleDynamicGuidePagegetFluidsPage()final static PageButtongetFluidsButton()final static HelpPagegetHelpPage()final static PageButtongetHelpButton()final static ResearchesPagegetResearchesPage()final static PageButtongetResearchesButton()final static RootPagegetRootPage()final static BackButtongetBackButton()final static SearchItemsAndFluidsPagegetSearchItemsAndFluidsPage()final static PageButtongetSearchItemsAndFluidsButton()final static MainSettingsPagegetMainSettingsPage()final static PageButtongetMainSettingsButton()-
Methods inherited from class io.github.pylonmc.rebar.item.RebarItem
equals, getKey, getKey, getPlaceholders, getSettings, hashCode, place, prePlace -
Methods inherited from class net.kyori.adventure.key.Keyed
key -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
RebarGuide
RebarGuide(ItemStack stack)
-
-
Method Detail
-
getSchema
final RebarItemSchema getSchema()
Additional data about the item's type.
-
getResearchBypassPermission
final String getResearchBypassPermission()
-
getAddon
final RebarAddon getAddon()
-
getRebarBlock
final NamespacedKey getRebarBlock()
-
isDisabled
final Boolean isDisabled()
-
getResearch
final Research getResearch()
-
respectCooldown
Boolean respectCooldown()
-
onUsedToClick
void onUsedToClick(PlayerInteractEvent event, EventPriority priority)
Called when a player right clicks with the item in either main or off hand.
-
addonResearchesPage
final static AddonResearchesPage addonResearchesPage(RebarAddon addon)
-
addonResearchesButton
final static AddonPageButton addonResearchesButton(RebarAddon addon)
-
researchItemsPage
final static ResearchItemsPage researchItemsPage(Research research)
-
ingredientsPage
final static ItemIngredientsPage ingredientsPage(FluidOrItem input)
-
ingredientsButton
final static PageButton ingredientsButton(FluidOrItem input)
-
infoButton
final static Item infoButton(FluidOrItem input)
-
hideItem
final static void hideItem(NamespacedKey key)
Hide an item from showing up in searches
-
hideItemUnlessAdmin
final static void hideItemUnlessAdmin(NamespacedKey key)
Hide an item from showing up in searches unless a player has the
rebar.guide.cheatpermission
-
hideFluid
final static void hideFluid(NamespacedKey key)
Hide a fluid from showing up in searches
-
hideResearch
final static void hideResearch(NamespacedKey key)
Hide a fluid from showing up in searches
-
getOrCreateInfoPage
final static SimpleInfoPage getOrCreateInfoPage(NamespacedKey key)
Returns the info page menu for an item or fluid. If no info page exists for the item already, a new one will be created when this function is called.
-
getInfoPage
final static SimpleInfoPage getInfoPage(NamespacedKey key)
Returns the info page menu for an item or fluid.
-
getHistory
final static Map<UUID, List<GuidePage>> getHistory()
Keeps track of the pages the player last visited Resets when the player ends up on the root page
-
getHiddenItems
final static Set<NamespacedKey> getHiddenItems()
Hidden items do not show up in searches
-
getAdminOnlyItems
final static Set<NamespacedKey> getAdminOnlyItems()
Admin items do not show up in searches unless a player has the
rebar.guide.cheatpermission
-
getHiddenFluids
final static Set<NamespacedKey> getHiddenFluids()
Hidden fluids do not show up in searches
-
getHiddenResearches
final static Set<NamespacedKey> getHiddenResearches()
Hidden researches do not show up in the researches category
-
getInfoPages
final static Map<NamespacedKey, SimpleInfoPage> getInfoPages()
-
getFluidsPage
final static SimpleDynamicGuidePage getFluidsPage()
-
getFluidsButton
final static PageButton getFluidsButton()
-
getHelpPage
final static HelpPage getHelpPage()
-
getHelpButton
final static PageButton getHelpButton()
-
getResearchesPage
final static ResearchesPage getResearchesPage()
-
getResearchesButton
final static PageButton getResearchesButton()
-
getRootPage
final static RootPage getRootPage()
-
getBackButton
final static BackButton getBackButton()
-
getSearchItemsAndFluidsPage
final static SearchItemsAndFluidsPage getSearchItemsAndFluidsPage()
-
getSearchItemsAndFluidsButton
final static PageButton getSearchItemsAndFluidsButton()
-
getMainSettingsPage
final static MainSettingsPage getMainSettingsPage()
-
getMainSettingsButton
final static PageButton getMainSettingsButton()
-
-
-
-