mirror of
https://github.com/CarmJos/MineConfiguration.git
synced 2026-06-04 13:55:03 +08:00
feat(item): 为ItemConfig添加 ItemFlag 与 enchant 相关配置
This commit is contained in:
+13
@@ -24,6 +24,19 @@ public class ItemConfig {
|
|||||||
protected @NotNull Map<Enchantment, Integer> enchants;
|
protected @NotNull Map<Enchantment, Integer> enchants;
|
||||||
protected @NotNull Set<ItemFlag> flags;
|
protected @NotNull Set<ItemFlag> flags;
|
||||||
|
|
||||||
|
public ItemConfig(@NotNull Material type, @Nullable String name) {
|
||||||
|
this(type, name, Collections.emptyList());
|
||||||
|
}
|
||||||
|
|
||||||
|
public ItemConfig(@NotNull Material type, @Nullable String name, @NotNull List<String> lore) {
|
||||||
|
this(type, (short) 0, name, lore);
|
||||||
|
}
|
||||||
|
|
||||||
|
public ItemConfig(@NotNull Material type, short damage,
|
||||||
|
@Nullable String name, @NotNull List<String> lore) {
|
||||||
|
this(type, damage, name, lore, Collections.emptyMap(), Collections.emptySet());
|
||||||
|
}
|
||||||
|
|
||||||
public ItemConfig(@NotNull Material type, short damage,
|
public ItemConfig(@NotNull Material type, short damage,
|
||||||
@Nullable String name, @NotNull List<String> lore,
|
@Nullable String name, @NotNull List<String> lore,
|
||||||
@NotNull Map<Enchantment, Integer> enchants,
|
@NotNull Map<Enchantment, Integer> enchants,
|
||||||
|
|||||||
Reference in New Issue
Block a user