2020-10-26 18:41:54 +01:00
|
|
|
package com.songoda.ultimatestacker.stackable.entity.custom;
|
|
|
|
|
|
|
|
import org.bukkit.Location;
|
|
|
|
import org.bukkit.entity.Entity;
|
|
|
|
import org.bukkit.entity.LivingEntity;
|
|
|
|
import org.bukkit.plugin.Plugin;
|
|
|
|
|
|
|
|
public abstract class CustomEntity {
|
|
|
|
|
|
|
|
protected final Plugin plugin;
|
|
|
|
|
|
|
|
protected CustomEntity(Plugin plugin) {
|
|
|
|
this.plugin = plugin;
|
|
|
|
}
|
|
|
|
|
|
|
|
public abstract String getPluginName();
|
|
|
|
|
|
|
|
public abstract boolean isMatchingType(Entity entity);
|
|
|
|
|
|
|
|
public abstract String getDisplayName(Entity entity);
|
|
|
|
|
|
|
|
public abstract boolean isSimilar(LivingEntity original, LivingEntity entity);
|
|
|
|
|
|
|
|
public abstract String getNBTIdentifier(Entity entity);
|
|
|
|
|
|
|
|
public abstract LivingEntity spawnFromIdentifier(String string, Location location);
|
2023-01-16 21:32:17 +01:00
|
|
|
|
|
|
|
public abstract boolean isCustomEntity(Entity entity);
|
2020-10-26 18:41:54 +01:00
|
|
|
}
|