mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-14 12:04:43 +00:00
24 lines
556 B
Java
24 lines
556 B
Java
package noppes.npcs.api.entity;
|
|
|
|
import net.minecraft.entity.projectile.EntityFishHook;
|
|
|
|
/**
|
|
* Represents a fish hook entity with additional methods.
|
|
*
|
|
* @param <T> The underlying Minecraft EntityFishHook type.
|
|
*/
|
|
public interface IFishHook<T extends EntityFishHook> extends IEntity<T> {
|
|
|
|
/**
|
|
* Returns the player who cast this fish hook.
|
|
*
|
|
* @return the casting player, or null if none.
|
|
*/
|
|
IPlayer getCaster();
|
|
|
|
/**
|
|
* Removes this fish hook entity from the world.
|
|
*/
|
|
void kill();
|
|
}
|