mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-24 00:26:16 +02:00
v1.7.0 (#45)
Some changes for this version: - Tried to make compatible with some legacy version of eco enchant (not assumed to work) - Fix some enchantment test from other plugin not being taken into account. Should work as expected now, but that mean it may not work as currently. - Made Heaven bag works - Updated Disenchantment, should work with disenchantment version >= 6.1.0. But break support for previous versions
This commit is contained in:
parent
4147f018a9
commit
5f557e3d49
31 changed files with 503 additions and 102 deletions
|
|
@ -0,0 +1,26 @@
|
|||
package com.willfp.ecoenchants.enchantments;
|
||||
|
||||
import com.willfp.ecoenchants.enchantments.meta.EnchantmentTarget;
|
||||
import com.willfp.ecoenchants.enchantments.meta.EnchantmentType;
|
||||
import org.bukkit.enchantments.Enchantment;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* Mock class for legacy package of eco enchants
|
||||
*/
|
||||
public class EcoEnchant {
|
||||
|
||||
public boolean conflictsWith(@NotNull Enchantment enchant) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public Set<EnchantmentTarget> getTargets() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public EnchantmentType getType() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
package com.willfp.ecoenchants.enchantments;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Mock class for legacy package of eco enchants
|
||||
*/
|
||||
public class EcoEnchants {
|
||||
|
||||
public static List<EcoEnchant> values(){
|
||||
return null; // We don't care here.
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
package com.willfp.ecoenchants.enchantments.meta;
|
||||
|
||||
import org.bukkit.Material;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* Mock class for legacy package of eco enchants
|
||||
*/
|
||||
public class EnchantmentTarget {
|
||||
|
||||
public Set<Material> getMaterials() {
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
package com.willfp.ecoenchants.enchantments.meta;
|
||||
|
||||
public class EnchantmentType {
|
||||
|
||||
public boolean isSingular() {
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue