001package com.ericlam.mc.eldgui;
002
003import com.ericlam.mc.eld.components.GroupConfiguration;
004import org.bukkit.Material;
005
006import java.util.ArrayList;
007import java.util.List;
008import java.util.Map;
009
010/**
011 * 界面範本,用於作爲 GroupConfiguration 的繼承,預設所有界面所需屬性
012 */
013public abstract class InventoryTemplate extends GroupConfiguration {
014
015    public String name;
016
017    public int rows;
018
019    public List<String> pattern;
020
021    public Map<String, ItemDescriptor> items;
022
023    public static class ItemDescriptor {
024
025        public Material material = Material.AIR;
026
027        public String name = "";
028
029        public int amount = 1;
030
031        public List<String> lore = new ArrayList<>();
032
033        public boolean glowing = false;
034
035        public boolean cancelMove = true;
036
037    }
038}
039