Initial commit
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
package com.willfp.ecoenchants.API;
|
||||
|
||||
import org.bukkit.block.Block;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public interface BlockBreakWrapper {
|
||||
public void breakBlock(Player player, Block block);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package com.willfp.ecoenchants.API;
|
||||
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public interface CooldownWrapper {
|
||||
double getAttackCooldown(Player player);
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package com.willfp.ecoenchants.API;
|
||||
|
||||
import org.bukkit.enchantments.Enchantment;
|
||||
|
||||
public interface NMSEnchantManagerWrapper {
|
||||
void init(Enchantment enchantment);
|
||||
void debug();
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package com.willfp.ecoenchants.API;
|
||||
|
||||
import org.bukkit.Material;
|
||||
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
|
||||
public interface TargetWrapper {
|
||||
Set<Material> TOOL = new HashSet<>();
|
||||
Set<Material> ROD = new HashSet<>();
|
||||
Set<Material> ARMOR = new HashSet<>();
|
||||
Set<Material> ALL = new HashSet<>();
|
||||
Set<Material> AXE = new HashSet<>();
|
||||
Set<Material> BOOK = new HashSet<>();
|
||||
Set<Material> PICKAXE = new HashSet<>();
|
||||
Set<Material> HOE = new HashSet<>();
|
||||
Set<Material> SHOVEL = new HashSet<>();
|
||||
Set<Material> SWORD = new HashSet<>();
|
||||
Set<Material> HELMET = new HashSet<>();
|
||||
Set<Material> CHESTPLATE = new HashSet<>();
|
||||
Set<Material> LEGGINGS = new HashSet<>();
|
||||
Set<Material> BOOTS = new HashSet<>();
|
||||
Set<Material> ELYTRA = new HashSet<>();
|
||||
Set<Material> BOW = new HashSet<>();
|
||||
Set<Material> CROSSBOW = new HashSet<>();
|
||||
Set<Material> SHEARS = new HashSet<>();
|
||||
Set<Material> TRIDENT = new HashSet<>();
|
||||
Set<Material> SHIELD = new HashSet<>();
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package com.willfp.ecoenchants.API;
|
||||
|
||||
import org.bukkit.entity.Trident;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
public interface TridentStackWrapper {
|
||||
ItemStack getTridentStack(Trident trident);
|
||||
}
|
||||
Reference in New Issue
Block a user