Package com.mclds.plugins.gui
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
可配置的映射页面,通过配置文件或者其他来源中的映射关系,动态的将物品放置到指定的位置
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionIndexMappingGui(String title, String template) IndexMappingGui(String title, String template, String fontImageWrapperNamespaceId) -
Method Summary
Modifier and TypeMethodDescriptiongetItemIndexMapping(org.bukkit.entity.Player viewer) 获取索引映射,格式为:物品ID -> 位置abstract @NotNull Map<String, ItemWrapper> getItemWrapperMapping(org.bukkit.entity.Player viewer) 获取物品映射,格式为:物品ID -> 物品包装器voidshow(org.bukkit.entity.Player viewer) Methods inherited from class com.mclds.plugins.gui.BaseGui
append, clearAll, get, get, onClick, onClose, onDrag, onMoveToGUI, onMoveToPlayer, playSound, set, set, set, setOnClose, setTemplate, setTitle, update, update, update
-
Constructor Details
-
IndexMappingGui
-
IndexMappingGui
-
-
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)
-