mirror of
https://github.com/Auxilor/EcoMobs.git
synced 2025-12-22 16:39:25 +00:00
Initial commit
This commit is contained in:
9
NMS/API/build.gradle
Normal file
9
NMS/API/build.gradle
Normal 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'
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package com.willfp.illusioner.nms.api;
|
||||
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public interface OpenInventoryWrapper {
|
||||
Object getOpenInventory(Player player);
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user