Referencing for-removal arg parsers at all will now log an error

This commit is contained in:
Auxilor
2022-01-06 14:59:39 +00:00
parent 5cb14e31b7
commit 2724f21d4e
4 changed files with 16 additions and 0 deletions

View File

@@ -27,4 +27,8 @@ public class ColorArgParser implements LookupArgParser {
@NotNull final ItemMeta meta) {
return null;
}
static {
Bukkit.getLogger().severe("Referencing a class marked for removal! (" + ColorArgParser.class.getName() + "), this will throw an error in a future release!");
}
}

View File

@@ -27,4 +27,8 @@ public class CustomModelDataArgParser implements LookupArgParser {
@NotNull final ItemMeta meta) {
return null;
}
static {
Bukkit.getLogger().severe("Referencing a class marked for removal! (" + CustomModelDataArgParser.class.getName() + "), this will throw an error in a future release!");
}
}

View File

@@ -27,4 +27,8 @@ public class EnchantmentArgParser implements LookupArgParser {
@NotNull final ItemMeta meta) {
return null;
}
static {
Bukkit.getLogger().severe("Referencing a class marked for removal! (" + EnchantmentArgParser.class.getName() + "), this will throw an error in a future release!");
}
}

View File

@@ -27,4 +27,8 @@ public class TextureArgParser implements LookupArgParser {
@NotNull final ItemMeta meta) {
return null;
}
static {
Bukkit.getLogger().severe("Referencing a class marked for removal! (" + TextureArgParser.class.getName() + "), this will throw an error in a future release!");
}
}