Referencing for-removal arg parsers at all will now log an error
This commit is contained in:
@@ -3,6 +3,7 @@ package com.willfp.eco.core.items.args;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
import org.bukkit.inventory.meta.ItemMeta;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
@@ -14,6 +15,7 @@ import java.util.function.Predicate;
|
||||
* @deprecated Moved to internals.
|
||||
*/
|
||||
@Deprecated(since = "6.16.0", forRemoval = true)
|
||||
@ApiStatus.ScheduledForRemoval(inVersion = "6.18.1")
|
||||
public class ColorArgParser implements LookupArgParser {
|
||||
/**
|
||||
* Instantiate arg parser.
|
||||
@@ -29,6 +31,6 @@ public class ColorArgParser implements LookupArgParser {
|
||||
}
|
||||
|
||||
static {
|
||||
Bukkit.getLogger().severe("Referencing a class marked for removal! (" + ColorArgParser.class.getName() + "), this will throw an error in a future release!");
|
||||
Bukkit.getLogger().severe("Referencing a class marked for removal! (" + ColorArgParser.class.getName() + "), this will throw an error in the next release!");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,6 +29,6 @@ public class CustomModelDataArgParser implements LookupArgParser {
|
||||
}
|
||||
|
||||
static {
|
||||
Bukkit.getLogger().severe("Referencing a class marked for removal! (" + CustomModelDataArgParser.class.getName() + "), this will throw an error in a future release!");
|
||||
Bukkit.getLogger().severe("Referencing a class marked for removal! (" + CustomModelDataArgParser.class.getName() + "), this will throw an error in the next release!");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,6 +29,6 @@ public class EnchantmentArgParser implements LookupArgParser {
|
||||
}
|
||||
|
||||
static {
|
||||
Bukkit.getLogger().severe("Referencing a class marked for removal! (" + EnchantmentArgParser.class.getName() + "), this will throw an error in a future release!");
|
||||
Bukkit.getLogger().severe("Referencing a class marked for removal! (" + EnchantmentArgParser.class.getName() + "), this will throw an error in the next release!");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,6 +29,6 @@ public class TextureArgParser implements LookupArgParser {
|
||||
}
|
||||
|
||||
static {
|
||||
Bukkit.getLogger().severe("Referencing a class marked for removal! (" + TextureArgParser.class.getName() + "), this will throw an error in a future release!");
|
||||
Bukkit.getLogger().severe("Referencing a class marked for removal! (" + TextureArgParser.class.getName() + "), this will throw an error in the next release!");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user