9
0
mirror of https://github.com/Auxilor/EcoMobs.git synced 2025-12-23 00:49:36 +00:00

Completely recoded the entire plugin

This commit is contained in:
Auxilor
2021-01-01 15:13:53 +00:00
parent 8cdefcdfb2
commit b33a457416
93 changed files with 2452 additions and 2354 deletions

View File

@@ -0,0 +1,6 @@
group 'com.willfp'
version rootProject.version
dependencies {
compileOnly 'org.spigotmc:spigot-api:1.16.4-R0.1-SNAPSHOT'
}

View File

@@ -0,0 +1,22 @@
package com.willfp.illusioner.proxy.proxies;
import com.willfp.eco.util.proxy.AbstractProxy;
import org.bukkit.boss.BarColor;
import org.bukkit.boss.BarStyle;
import org.bukkit.boss.BossBar;
import org.bukkit.plugin.Plugin;
import org.jetbrains.annotations.NotNull;
public interface EntityIllusionerProxy extends AbstractProxy {
/**
* Create boss bar for an illusioner.
*
* @param plugin The plugin that owns the boss bar.
* @param color The color of the boss bar.
* @param style The style of the boss bar.
* @return The created boss bar.
*/
BossBar createBossbar(@NotNull Plugin plugin,
@NotNull BarColor color,
@NotNull BarStyle style);
}

View File

@@ -0,0 +1,38 @@
package com.willfp.illusioner.proxy.proxies;
import com.willfp.eco.util.proxy.AbstractProxy;
import org.bukkit.Location;
import org.bukkit.entity.Illusioner;
import org.jetbrains.annotations.NotNull;
public interface IllusionerHelperProxy extends AbstractProxy {
/**
* Spawn an illusioner.
*
* @param location The location to spawn it at.
* @param maxHealth The health for the illusioner to have.
* @param attackDamage The attack damage for the illusioner to have.
* @param name The name of the illusioner.
* @return The created illusioner.
*/
EntityIllusionerProxy spawn(@NotNull Location location,
double maxHealth,
double attackDamage,
@NotNull String name);
/**
* Convert a normal illusioner to a plugin-based one.
*
* @param illusioner The illusioner to convert.
* @param location The location to spawn it at.
* @param maxHealth The health for the illusioner to have.
* @param attackDamage The attack damage for the illusioner to have.
* @param name The name of the illusioner.
* @return The created illusioner.
*/
EntityIllusionerProxy adapt(@NotNull Illusioner illusioner,
@NotNull Location location,
double maxHealth,
double attackDamage,
@NotNull String name);
}