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:
alexcrea 2025-01-20 18:20:46 +01:00 committed by GitHub
parent 4147f018a9
commit 5f557e3d49
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
31 changed files with 503 additions and 102 deletions

View file

@ -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;
}
}

View file

@ -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.
}
}

View file

@ -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;
}
}

View file

@ -0,0 +1,9 @@
package com.willfp.ecoenchants.enchantments.meta;
public class EnchantmentType {
public boolean isSingular() {
return false;
}
}