mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-12-25 20:17:38 +01:00
Suppressed deprecation warnings
This commit is contained in:
parent
19f8d9330c
commit
c0f6bf2ee3
@ -7,7 +7,7 @@ dependencies {
|
||||
}
|
||||
|
||||
jar{
|
||||
archiveName = findProperty("Name") + " v" + findProperty("version") + ".jar"
|
||||
archiveFileName = findProperty("Name") + " v" + findProperty("version") + ".jar"
|
||||
}
|
||||
|
||||
description = 'EcoEnchants API'
|
||||
|
@ -8,7 +8,7 @@ dependencies {
|
||||
}
|
||||
|
||||
jar{
|
||||
archiveName = project.name + " v" + findProperty("version") + ".jar"
|
||||
archiveFileName = project.name + " v" + findProperty("version") + ".jar"
|
||||
}
|
||||
|
||||
description = 'v1_15_R1'
|
||||
|
@ -8,7 +8,7 @@ dependencies {
|
||||
}
|
||||
|
||||
jar{
|
||||
archiveName = project.name + " v" + findProperty("version") + ".jar"
|
||||
archiveFileName = project.name + " v" + findProperty("version") + ".jar"
|
||||
}
|
||||
|
||||
description = 'v1_16_R1'
|
||||
|
@ -8,7 +8,7 @@ dependencies {
|
||||
}
|
||||
|
||||
jar{
|
||||
archiveName = project.name + " v" + findProperty("version") + ".jar"
|
||||
archiveFileName = project.name + " v" + findProperty("version") + ".jar"
|
||||
}
|
||||
|
||||
description = 'v1_16_R2'
|
||||
|
@ -8,7 +8,7 @@ dependencies {
|
||||
}
|
||||
|
||||
jar{
|
||||
archiveName = project.name + " v" + findProperty("version") + ".jar"
|
||||
archiveFileName = project.name + " v" + findProperty("version") + ".jar"
|
||||
}
|
||||
|
||||
description = 'v1_16_R3'
|
||||
|
@ -15,6 +15,7 @@ import java.util.List;
|
||||
import java.util.Optional;
|
||||
import java.util.Set;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class EnchantmentCache {
|
||||
private static final Set<CacheEntry> CACHE = new HashSet<>();
|
||||
|
||||
|
@ -7,6 +7,7 @@ import com.willfp.ecoenchants.display.EnchantDisplay;
|
||||
import org.bukkit.inventory.ItemFlag;
|
||||
import org.bukkit.persistence.PersistentDataType;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public final class PacketSetSlot extends AbstractPacketAdapter {
|
||||
public PacketSetSlot() {
|
||||
super(PacketType.Play.Server.SET_SLOT);
|
||||
|
@ -6,7 +6,9 @@ import com.willfp.ecoenchants.display.AbstractPacketAdapter;
|
||||
import com.willfp.ecoenchants.display.EnchantDisplay;
|
||||
import org.bukkit.inventory.ItemFlag;
|
||||
import org.bukkit.persistence.PersistentDataType;
|
||||
import org.kingdoms.utils.caffeine.checkerframework.checker.units.qual.Speed;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public final class PacketWindowItems extends AbstractPacketAdapter {
|
||||
public PacketWindowItems() {
|
||||
super(PacketType.Play.Server.WINDOW_ITEMS);
|
||||
|
@ -33,7 +33,7 @@ import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@SuppressWarnings({"unchecked", "deprecation"})
|
||||
public abstract class EcoEnchant extends Enchantment implements Listener, Registerable, Watcher {
|
||||
private String name;
|
||||
private String description;
|
||||
|
@ -10,6 +10,7 @@ import org.bukkit.event.player.PlayerMoveEvent;
|
||||
import org.bukkit.potion.PotionEffect;
|
||||
import org.bukkit.potion.PotionEffectType;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public final class Graceful extends EcoEnchant {
|
||||
public Graceful() {
|
||||
super(
|
||||
|
@ -9,6 +9,7 @@ import org.bukkit.inventory.meta.EnchantmentStorageMeta;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class GrindstoneMerge {
|
||||
public static Map<Enchantment, Integer> doMerge(ItemStack top, ItemStack bottom) {
|
||||
Map<Enchantment, Integer> bottomEnchants = new HashMap<>();
|
||||
|
@ -32,6 +32,7 @@ import java.text.DecimalFormat;
|
||||
import java.util.Set;
|
||||
import java.util.UUID;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class WatcherTriggers implements Listener {
|
||||
|
||||
@EventHandler(ignoreCancelled = true)
|
||||
|
@ -25,6 +25,7 @@ import org.bukkit.inventory.ItemStack;
|
||||
* @author Arnah
|
||||
* @since Jul 30, 2015
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
public class ArmorListener implements Listener {
|
||||
//Event Priority is highest because other plugins might cancel the events before we check.
|
||||
|
||||
|
@ -78,11 +78,11 @@ allprojects {
|
||||
}
|
||||
|
||||
maven {
|
||||
url 'http://repo.mikeprimm.com/'
|
||||
url 'https://repo.mikeprimm.com/'
|
||||
}
|
||||
|
||||
maven {
|
||||
url 'http://maven.sk89q.com/repo/'
|
||||
url 'https://maven.sk89q.com/repo/'
|
||||
}
|
||||
|
||||
maven {
|
||||
@ -95,6 +95,7 @@ allprojects {
|
||||
}
|
||||
|
||||
tasks.withType(JavaCompile) {
|
||||
options.deprecation = true
|
||||
options.encoding = 'UTF-8'
|
||||
}
|
||||
compileJava.options.encoding = 'UTF-8'
|
||||
|
Loading…
Reference in New Issue
Block a user