mirror of
https://github.com/Auxilor/EcoMobs.git
synced 2025-12-21 16:09:24 +00:00
General improvements
This commit is contained in:
@@ -1,17 +1,8 @@
|
||||
package com.willfp.ecobosses.proxy.proxies;
|
||||
|
||||
import com.willfp.eco.util.plugin.AbstractEcoPlugin;
|
||||
import com.willfp.eco.util.proxy.AbstractProxy;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.boss.BossBar;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import com.willfp.ecobosses.proxy.util.CustomEntity;
|
||||
import org.bukkit.entity.Illusioner;
|
||||
|
||||
public interface CustomIllusionerProxy extends AbstractProxy {
|
||||
/**
|
||||
* Spawn an illusioner.
|
||||
*
|
||||
* @param location The location to spawn it at.
|
||||
* @return The created illusioner.
|
||||
*/
|
||||
CustomIllusionerProxy spawn(@NotNull Location location);
|
||||
public interface CustomIllusionerProxy extends AbstractProxy, CustomEntity<Illusioner> {
|
||||
}
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.willfp.ecobosses.proxy.util;
|
||||
|
||||
import org.bukkit.Location;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public interface CustomEntity<T> {
|
||||
/**
|
||||
* Spawn a custom entity.
|
||||
*
|
||||
* @param location The location to spawn it at.
|
||||
* @return The created entity.
|
||||
*/
|
||||
T spawn(@NotNull Location location);
|
||||
}
|
||||
Reference in New Issue
Block a user