Package org.bukkit.help
Class IndexHelpTopic
java.lang.Object
org.bukkit.help.HelpTopic
org.bukkit.help.IndexHelpTopic
This help topic generates a list of other help topics. This class is useful
 for adding your own index help topics. To enforce a particular order, use a
 sorted collection.
 
If a preamble is provided to the constructor, that text will be displayed before the first item in the index.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected Collection<HelpTopic>protected Stringprotected StringFields inherited from class org.bukkit.help.HelpTopicamendedPermission, fullText, name, shortText
- 
Constructor SummaryConstructorsConstructorDescriptionIndexHelpTopic(String name, String shortText, String permission, Collection<HelpTopic> topics) IndexHelpTopic(String name, String shortText, String permission, Collection<HelpTopic> topics, String preamble) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidamendCanSee(String amendedPermission) Allows the server administrator to override the permission required to see a help topic.protected StringbuildIndexLine(CommandSender sender, HelpTopic topic) Builds individual lines in the index topic.protected StringbuildPreamble(CommandSender sender) Builds the topic preamble.booleancanSee(CommandSender sender) Determines if aPlayeris allowed to see this help topic.getFullText(CommandSender sender) Returns the full description of this help topic that is displayed when the user requests this topic's details.protected voidsetTopicsCollection(Collection<HelpTopic> topics) Sets the contents of the internal allTopics collection.Methods inherited from class org.bukkit.help.HelpTopicamendTopic, applyAmendment, getName, getShortText
- 
Field Details- 
permission
- 
preamble
- 
allTopics
 
- 
- 
Constructor Details- 
IndexHelpTopic
- 
IndexHelpTopic
 
- 
- 
Method Details- 
setTopicsCollectionSets the contents of the internal allTopics collection.- Parameters:
- topics- The topics to set.
 
- 
canSeeDescription copied from class:HelpTopicDetermines if aPlayeris allowed to see this help topic.HelpTopic implementations should take server administrator wishes into account as set by the HelpTopic.amendCanSee(String)function.
- 
amendCanSeeDescription copied from class:HelpTopicAllows the server administrator to override the permission required to see a help topic.HelpTopic implementations should take this into account when determining topic visibility on the HelpTopic.canSee(org.bukkit.command.CommandSender)function.- Overrides:
- amendCanSeein class- HelpTopic
- Parameters:
- amendedPermission- The permission node the server administrator wishes to apply to this topic.
 
- 
getFullTextDescription copied from class:HelpTopicReturns the full description of this help topic that is displayed when the user requests this topic's details.The result will be paginated to properly fit the user's client. - Overrides:
- getFullTextin class- HelpTopic
- Parameters:
- sender- The player or console requesting the full text. Useful for further security trimming the command's full text based on sub-permissions in custom implementations.
- Returns:
- A full topic description.
 
- 
buildPreambleBuilds the topic preamble. Override this method to change how the index preamble looks.- Parameters:
- sender- The command sender requesting the preamble.
- Returns:
- The topic preamble.
 
- 
buildIndexLineBuilds individual lines in the index topic. Override this method to change how index lines are rendered.- Parameters:
- sender- The command sender requesting the index line.
- topic- The topic to render into an index line.
- Returns:
- The rendered index line.
 
 
-