类 PluginInfoElement

java.lang.Object
cn.afternode.commons.bukkit.report.PluginInfoElement
所有已实现的接口:
IPluginReportElement

public class PluginInfoElement extends Object implements IPluginReportElement
Plugin information (from plugin.yml/PluginDescriptionFile)
另请参阅:
  • PluginDescriptionFile
  • 构造器详细资料

    • PluginInfoElement

      public PluginInfoElement(org.bukkit.plugin.Plugin plugin)
      Primary constructor
      参数:
      plugin - Plugin
  • 方法详细资料

    • title

      public String title()
      从接口复制的说明: IPluginReportElement
      Title of this element (append to report)
      指定者:
      title 在接口中 IPluginReportElement
      返回:
      Title
    • withWebsite

      public PluginInfoElement withWebsite(boolean state)
      Append website in plugin.yml
      参数:
      state - State
      返回:
      This element
      另请参阅:
      • PluginDescriptionFile.getWebsite()
    • withLibraries

      public PluginInfoElement withLibraries(boolean state)
      Append libraries in plugin.yml
      参数:
      state - State
      返回:
      This element
      另请参阅:
      • PluginDescriptionFile.getLibraries()
    • withDepends

      public PluginInfoElement withDepends(boolean state)
      Append dependencies names in plugin.yml
      参数:
      state - State
      返回:
      This element
      另请参阅:
      • PluginDescriptionFile.getDepend()
    • withSoftDepends

      public PluginInfoElement withSoftDepends(boolean state)
      Append soft dependencies names in plugin.yml
      参数:
      state - State
      返回:
      This element
      另请参阅:
      • PluginDescriptionFile.getSoftDepend()
    • withLoadBefore

      public PluginInfoElement withLoadBefore(boolean state)
      Append load-before names in plugin.yml
      参数:
      state - State
      返回:
      This element
      另请参阅:
      • PluginDescriptionFile.getLoadBefore()
    • withPluginNotFound

      public PluginInfoElement withPluginNotFound(boolean state)
      Append if dependencies/soft-dependencies/load-before plugins not found
      参数:
      state - State
      返回:
      This element
    • build

      public String build()
      从接口复制的说明: IPluginReportElement
      Build to string
      指定者:
      build 在接口中 IPluginReportElement
      返回:
      Body of this element