1
mirror of https://github.com/CarmJos/EasyPlugin.git synced 2024-09-19 19:25:45 +00:00

chore(item): 添加序列化方法

This commit is contained in:
Carm Jos 2022-06-18 00:21:03 +08:00
parent b6bd4beda0
commit 558723ea82

View File

@ -46,7 +46,7 @@ public class GUIItemConfiguration {
this.slots.forEach(slot -> gui.setItem(slot, item));
}
public Map<String, Object> serialize() {
public @NotNull Map<String, Object> serialize() {
LinkedHashMap<String, Object> map = new LinkedHashMap<>();
map.put("type", this.type.name());