diff --git a/src/main/java/xyz/alexcrea/cuanvil/api/ConflictBuilder.java b/src/main/java/xyz/alexcrea/cuanvil/api/ConflictBuilder.java
index 284f659..08e4d9b 100644
--- a/src/main/java/xyz/alexcrea/cuanvil/api/ConflictBuilder.java
+++ b/src/main/java/xyz/alexcrea/cuanvil/api/ConflictBuilder.java
@@ -444,7 +444,7 @@ n *
AbstractItemTypeGroup typeGroup = itemGroupManager.get(groupName);
if (typeGroup == null) {
- CustomAnvil.instance.getLogger().warning("Material group " + groupName + " do not exist but is ask by conflict " + getName());
+ CustomAnvil.instance.getLogger().warning("Item group " + groupName + " do not exist but is ask by conflict " + getName());
ConflictAPI.logConflictOrigin(this);
continue;
}
diff --git a/src/main/java/xyz/alexcrea/cuanvil/api/ItemGroupApi.java b/src/main/java/xyz/alexcrea/cuanvil/api/ItemGroupApi.java
index 095d3b5..3b3bab2 100644
--- a/src/main/java/xyz/alexcrea/cuanvil/api/ItemGroupApi.java
+++ b/src/main/java/xyz/alexcrea/cuanvil/api/ItemGroupApi.java
@@ -100,7 +100,7 @@ public class ItemGroupApi {
public static boolean writeItemGroup(@NotNull AbstractItemTypeGroup group, boolean updatePlanned) {
String name = group.getName();
if (name.contains(".")) {
- CustomAnvil.instance.getLogger().warning("Group " + name + " contain . in its name but should not. this material group is ignored.");
+ CustomAnvil.instance.getLogger().warning("Group " + name + " contain . in its name but should not. this item group is ignored.");
return false;
}
diff --git a/src/main/java/xyz/alexcrea/cuanvil/api/event/CAConfigReadyEvent.java b/src/main/java/xyz/alexcrea/cuanvil/api/event/CAConfigReadyEvent.java
index 0abefa9..297840b 100644
--- a/src/main/java/xyz/alexcrea/cuanvil/api/event/CAConfigReadyEvent.java
+++ b/src/main/java/xyz/alexcrea/cuanvil/api/event/CAConfigReadyEvent.java
@@ -18,7 +18,7 @@ import xyz.alexcrea.cuanvil.api.ItemGroupApi;
*
* use {@link xyz.alexcrea.cuanvil.api.ConflictAPI ConflictApi},
* {@link xyz.alexcrea.cuanvil.gui.config.global.CustomRecipeConfigGui CustomRecipeConfigGui},
- * {@link ItemGroupApi MaterialGroupApi}
+ * {@link ItemGroupApi ItemGroupApi}
* and {@link xyz.alexcrea.cuanvil.api.UnitRepairApi UnitRepairApi}
* to add/remove/edit configurations
*/
diff --git a/src/main/java/xyz/alexcrea/cuanvil/gui/config/SelectItemTypeContainer.java b/src/main/java/xyz/alexcrea/cuanvil/gui/config/SelectItemTypeContainer.java
index a808303..f490b6c 100644
--- a/src/main/java/xyz/alexcrea/cuanvil/gui/config/SelectItemTypeContainer.java
+++ b/src/main/java/xyz/alexcrea/cuanvil/gui/config/SelectItemTypeContainer.java
@@ -20,12 +20,12 @@ public interface SelectItemTypeContainer {
static List getItemLore(SelectItemTypeContainer container, String containerType, String action) {
// Prepare material lore
ArrayList groupLore = new ArrayList<>();
- groupLore.add("§7Allow you to select a list of §ematerials §7that this " + containerType + " should " + action);
+ groupLore.add("§7Allow you to select a list of §eitems §7that this " + containerType + " should " + action);
Set typeSet = container.getSelectedItems();
if (typeSet.isEmpty()) {
- groupLore.add("§7There is no " + action + "d material for this " + containerType + ".");
+ groupLore.add("§7There is no " + action + "d item for this " + containerType + ".");
} else {
- groupLore.add("§7List of " + action + "d materials for this " + containerType + ":");
+ groupLore.add("§7List of " + action + "d items for this " + containerType + ":");
Iterator typeIterator = typeSet.iterator();
boolean greaterThanMax = typeSet.size() > 5;
diff --git a/src/main/java/xyz/alexcrea/cuanvil/gui/config/global/GroupConfigGui.java b/src/main/java/xyz/alexcrea/cuanvil/gui/config/global/GroupConfigGui.java
index 840e408..1213236 100644
--- a/src/main/java/xyz/alexcrea/cuanvil/gui/config/global/GroupConfigGui.java
+++ b/src/main/java/xyz/alexcrea/cuanvil/gui/config/global/GroupConfigGui.java
@@ -52,10 +52,10 @@ public class GroupConfigGui extends MappedGuiListConfigGui getCreateItemLore() {
return Arrays.asList(
"§7Select a new item to be repairable.",
- "§7You will be asked the material to use."
+ "§7You will be asked the item to use."
);
}
diff --git a/src/main/java/xyz/alexcrea/cuanvil/gui/config/list/elements/GroupConfigSubSettingGui.java b/src/main/java/xyz/alexcrea/cuanvil/gui/config/list/elements/GroupConfigSubSettingGui.java
index 0e91807..8501b00 100644
--- a/src/main/java/xyz/alexcrea/cuanvil/gui/config/list/elements/GroupConfigSubSettingGui.java
+++ b/src/main/java/xyz/alexcrea/cuanvil/gui/config/list/elements/GroupConfigSubSettingGui.java
@@ -223,22 +223,22 @@ public class GroupConfigSubSettingGui extends MappedToListSubSettingGui implemen
List groupLore = SelectGroupContainer.getGroupLore(this, "group", "include");
// Configure included material setting item
- ItemStack matSelectItem = this.itemSelection.getItem();
- ItemMeta matSelectMeta = matSelectItem.getItemMeta();
+ ItemStack itemSelectItem = this.itemSelection.getItem();
+ ItemMeta itemSelectMeta = itemSelectItem.getItemMeta();
- matSelectMeta.setDisplayName("§aSelect included §eMaterials §aSettings");
- matSelectMeta.setLore(matLore);
- matSelectMeta.addItemFlags(ItemFlag.values());
+ itemSelectMeta.setDisplayName("§aSelect included §eItems");
+ itemSelectMeta.setLore(matLore);
+ itemSelectMeta.addItemFlags(ItemFlag.values());
- matSelectItem.setItemMeta(matSelectMeta);
+ itemSelectItem.setItemMeta(itemSelectMeta);
- this.itemSelection.setItem(matSelectItem); // Just in case
+ this.itemSelection.setItem(itemSelectItem); // Just in case
// Configure enchant setting item
ItemStack groupSelectItem = this.groupSelection.getItem();
ItemMeta groupSelectMeta = groupSelectItem.getItemMeta();
- groupSelectMeta.setDisplayName("§aSelect included §3Groups §aSettings");
+ groupSelectMeta.setDisplayName("§aSelect included §3Groups");
groupSelectMeta.setLore(groupLore);
groupSelectItem.setItemMeta(groupSelectMeta);
diff --git a/src/main/java/xyz/alexcrea/cuanvil/gui/config/settings/ItemTypeSelectSettingGui.java b/src/main/java/xyz/alexcrea/cuanvil/gui/config/settings/ItemTypeSelectSettingGui.java
index 7d537c5..032d456 100644
--- a/src/main/java/xyz/alexcrea/cuanvil/gui/config/settings/ItemTypeSelectSettingGui.java
+++ b/src/main/java/xyz/alexcrea/cuanvil/gui/config/settings/ItemTypeSelectSettingGui.java
@@ -90,7 +90,7 @@ public class ItemTypeSelectSettingGui extends MappedElementListConfigGui
/**
- * Get if a material is allowed following the group policy
+ * Get if an item is allowed following the group policy
*/
open fun contain(mat: ItemType): Boolean {
return mat in getItemTypes()
@@ -98,19 +98,19 @@ abstract class AbstractItemTypeGroup(private val name: String) {
abstract fun setGroups(groups: MutableSet)
/**
- * Get the contained group of this material group
+ * Get the contained group of this item group
*/
abstract fun getGroups(): MutableSet
open fun getRepresentativeItem(): ItemType {
- // Test inner material
+ // Test inner item
val itemIterator = includedItems.iterator()
while (itemIterator.hasNext()) {
val type = itemIterator.next()
if (type == ItemType.AIR) continue
return type
}
- // Test included group representative material
+ // Test included group representative item
val groupIterator = getGroups().iterator()
while (groupIterator.hasNext()) {
val groupType = groupIterator.next().getRepresentativeItem()
diff --git a/src/main/kotlin/xyz/alexcrea/cuanvil/group/EnchantConflictManager.kt b/src/main/kotlin/xyz/alexcrea/cuanvil/group/EnchantConflictManager.kt
index d315763..9291a0c 100644
--- a/src/main/kotlin/xyz/alexcrea/cuanvil/group/EnchantConflictManager.kt
+++ b/src/main/kotlin/xyz/alexcrea/cuanvil/group/EnchantConflictManager.kt
@@ -165,7 +165,7 @@ class EnchantConflictManager {
): AbstractItemTypeGroup {
val group = itemManager.get(groupName)
if (group == null) {
- CustomAnvil.instance.logger.warning("Material group $groupName do not exist but is ask by conflict $conflictName")
+ CustomAnvil.instance.logger.warning("Item group $groupName do not exist but is ask by conflict $conflictName")
return IncludeItemTypeGroup("error_placeholder")
}
diff --git a/src/main/kotlin/xyz/alexcrea/cuanvil/group/ItemGroupManager.kt b/src/main/kotlin/xyz/alexcrea/cuanvil/group/ItemGroupManager.kt
index 7a6d242..cb36487 100644
--- a/src/main/kotlin/xyz/alexcrea/cuanvil/group/ItemGroupManager.kt
+++ b/src/main/kotlin/xyz/alexcrea/cuanvil/group/ItemGroupManager.kt
@@ -21,7 +21,7 @@ class ItemGroupManager {
lateinit var groupMap: LinkedHashMap
- // Read and create material groups
+ // Read and create item groups
fun prepareGroups(config: ConfigurationSection) {
groupMap = LinkedHashMap()
@@ -51,7 +51,7 @@ class ItemGroupManager {
val groupSection = config.getConfigurationSection(key)!!
val groupType = groupSection.getString(GROUP_TYPE_PATH, null)
- // Create Material group according to the group type
+ // Create item group according to the group type
val group: AbstractItemTypeGroup
if (groupType != null && GroupType.EXCLUDE.equal(groupType)) {
group = ExcludeItemTypeGroup(key)
@@ -74,7 +74,7 @@ class ItemGroupManager {
config: ConfigurationSection,
keys: Set
) {
- // Read material to include in this group policy
+ // Read item to include in this group policy
val itemTypeNames = groupSection.getStringList(ITEMS_LIST_PATH)
for (typeName in itemTypeNames) {
val type = ItemTypeUtil.getItemType(typeName)
diff --git a/src/main/kotlin/xyz/alexcrea/cuanvil/recipe/AnvilCustomRecipe.kt b/src/main/kotlin/xyz/alexcrea/cuanvil/recipe/AnvilCustomRecipe.kt
index fa1a977..368f3ca 100644
--- a/src/main/kotlin/xyz/alexcrea/cuanvil/recipe/AnvilCustomRecipe.kt
+++ b/src/main/kotlin/xyz/alexcrea/cuanvil/recipe/AnvilCustomRecipe.kt
@@ -153,7 +153,7 @@ class AnvilCustomRecipe(
DEFAULT_RESULT_ITEM_CONFIG
)
- // Update material map
+ // Update item map
ConfigHolder.CUSTOM_RECIPE_HOLDER.recipeManager.cleanSetLeftItem(this, leftItem)
}
diff --git a/src/main/kotlin/xyz/alexcrea/cuanvil/util/config/LoreEditType.kt b/src/main/kotlin/xyz/alexcrea/cuanvil/util/config/LoreEditType.kt
index ed5ef1b..60fe879 100644
--- a/src/main/kotlin/xyz/alexcrea/cuanvil/util/config/LoreEditType.kt
+++ b/src/main/kotlin/xyz/alexcrea/cuanvil/util/config/LoreEditType.kt
@@ -69,7 +69,7 @@ enum class LoreEditType(
}
/**
- * If the edit should consume the provided material
+ * If the edit should consume the provided item
*/
val doConsume: Boolean
get() {
diff --git a/src/main/resources/enchant_conflict.yml b/src/main/resources/enchant_conflict.yml
index 0e8b3f3..c97ecbc 100644
--- a/src/main/resources/enchant_conflict.yml
+++ b/src/main/resources/enchant_conflict.yml
@@ -3,7 +3,7 @@
# You can still manually edit here if you like to. but if you do, don't forget to /anvilconfigreload after you changes !
#
-# material conflicts
+# item conflicts
#
# If you want to edit this file:
# - A conflict will apply to every item except if in one of the notAffectedGroups group
diff --git a/src/main/resources/item_groups.yml b/src/main/resources/item_groups.yml
index 0e0a2bc..835fb12 100644
--- a/src/main/resources/item_groups.yml
+++ b/src/main/resources/item_groups.yml
@@ -2,11 +2,7 @@
# It is recommended that you use /configanvil to edit theses config.
# You can still manually edit here if you like to. but if you do, don't forget to /anvilconfigreload after you changes !
#
-
-# Please note this config use spigot material names.
-# It should match minecraft name in most case, maybe every case, but I can't be sure
-# In case there an issue with material name, you can found them here:
-# https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html
+# This config use the item namespace. or assume minecraft: namespace if absent.
# An empty Exclude group exclude nothing, so it contain everything
everything: