mirror of
https://github.com/Auxilor/EcoMobs.git
synced 2025-12-21 16:09:24 +00:00
Cleaned up code
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
package com.willfp.illusioner.proxy.proxies;
|
||||
|
||||
import com.willfp.eco.util.plugin.AbstractEcoPlugin;
|
||||
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 {
|
||||
@@ -12,11 +10,7 @@ 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);
|
||||
BossBar createBossbar(@NotNull AbstractEcoPlugin plugin);
|
||||
}
|
||||
|
||||
@@ -10,29 +10,15 @@ 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);
|
||||
EntityIllusionerProxy spawn(@NotNull Location location);
|
||||
|
||||
/**
|
||||
* 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);
|
||||
EntityIllusionerProxy adapt(@NotNull Illusioner illusioner);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user