Files
Entiddy/src/main/java/me/youhavetrouble/entiddy/EntiddyInterface.java
T
2022-05-12 19:03:02 +02:00

24 lines
675 B
Java

package me.youhavetrouble.entiddy;
import org.bukkit.Location;
import org.bukkit.entity.Entity;
import org.bukkit.entity.LivingEntity;
import org.bukkit.event.entity.CreatureSpawnEvent;
import org.jetbrains.annotations.NotNull;
public interface EntiddyInterface {
/**
* @param location Location to spawn the entity at
* @param spawnReason SpawnReason to set
* @return Spawned entity
*/
Entity spawn(@NotNull Location location, @NotNull CreatureSpawnEvent.SpawnReason spawnReason);
/**
* @return True if the entity is an instance of the specific special/easter egg type
*/
boolean isInstance(@NotNull LivingEntity entity);
}