9
0
mirror of https://github.com/Auxilor/EcoMobs.git synced 2025-12-22 16:39:25 +00:00

Initial commit

This commit is contained in:
Auxilor
2020-12-08 18:55:16 +00:00
commit 733cd22c29
114 changed files with 4984 additions and 0 deletions

9
NMS/API/build.gradle Normal file
View File

@@ -0,0 +1,9 @@
dependencies {
compileOnly 'org.spigotmc:spigot-api:1.15.2-R0.1-SNAPSHOT'
}
jar{
archiveFileName = findProperty("Name") + " v" + findProperty("version") + ".jar"
}
description = 'Illusioner API'

View File

@@ -0,0 +1,11 @@
package com.willfp.illusioner.nms.api;
import org.bukkit.block.Block;
import org.bukkit.entity.Player;
/**
* NMS Interface for breaking blocks as player
*/
public interface BlockBreakWrapper {
void breakBlock(Player player, Block block);
}

View File

@@ -0,0 +1,10 @@
package com.willfp.illusioner.nms.api;
import org.bukkit.entity.Player;
/**
* NMS Interface for getting attack cooldown
*/
public interface CooldownWrapper {
double getAttackCooldown(Player player);
}

View File

@@ -0,0 +1,12 @@
package com.willfp.illusioner.nms.api;
import org.bukkit.boss.BarColor;
import org.bukkit.boss.BarStyle;
import org.bukkit.plugin.Plugin;
/**
* NMS Interface for managing illusioner bosses
*/
public interface EntityIllusionerWrapper {
void createBossbar(Plugin plugin, BarColor color, BarStyle style);
}

View File

@@ -0,0 +1,10 @@
package com.willfp.illusioner.nms.api;
import org.bukkit.Location;
/**
* NMS Interface for managing illusioner bosses
*/
public interface IllusionerWrapper {
EntityIllusionerWrapper spawn(Location location, double maxHealth, double attackDamage);
}

View File

@@ -0,0 +1,7 @@
package com.willfp.illusioner.nms.api;
import org.bukkit.entity.Player;
public interface OpenInventoryWrapper {
Object getOpenInventory(Player player);
}

View File

@@ -0,0 +1,11 @@
package com.willfp.illusioner.nms.api;
import org.bukkit.entity.Trident;
import org.bukkit.inventory.ItemStack;
/**
* NMS Interface for getting an ItemStack from a Trident
*/
public interface TridentStackWrapper {
ItemStack getTridentStack(Trident trident);
}