Class IndexMappingGui

java.lang.Object
com.mclds.plugins.gui.BaseGui
com.mclds.plugins.gui.IndexMappingGui
All Implemented Interfaces:
Gui, org.bukkit.event.Listener
Direct Known Subclasses:
DashboardGui, PlayerInfoGui

public abstract class IndexMappingGui extends BaseGui
可配置的映射页面,通过配置文件或者其他来源中的映射关系,动态的将物品放置到指定的位置
  • Constructor Details

    • IndexMappingGui

      public IndexMappingGui(String title, String template)
    • IndexMappingGui

      public IndexMappingGui(String title, String template, String fontImageWrapperNamespaceId)
  • Method Details

    • getItemIndexMapping

      @NotNull public abstract @NotNull Map<String,Integer> getItemIndexMapping(org.bukkit.entity.Player viewer)
      获取索引映射,格式为:物品ID -> 位置
    • getItemWrapperMapping

      @NotNull public abstract @NotNull Map<String,ItemWrapper> getItemWrapperMapping(org.bukkit.entity.Player viewer)
      获取物品映射,格式为:物品ID -> 物品包装器
    • show

      public void show(org.bukkit.entity.Player viewer)
      Specified by:
      show in interface Gui
      Overrides:
      show in class BaseGui