IArrow, IFishHook, IThrowable

This commit is contained in:
Kam committed 2025-07-08 16:56:13 -04:00
1 parent a58b6383aa
commit b60245f21a
3 files changed
+47

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
package noppes.npcs.api.entity;
import net.minecraft.entity.projectile.EntityArrow;
/**
* Represents a arrow entity with additional methods.
*
* @param <T> The underlying Minecraft EntityArrow type.
*/
public interface IArrow<T extends EntityArrow> extends IEntity<T> {
IEntity getShooter();
double getDamage();
void kill();
}
@@ -0,0 +1,15 @@
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> {
IPlayer getCaster();
void kill();
}
@@ -0,0 +1,15 @@
package noppes.npcs.api.entity;
import net.minecraft.entity.projectile.EntityThrowable;
/**
* Represents a throwable entity with additional methods.
*
* @param <T> The underlying Minecraft EntityThrowable type.
*/
public interface IThrowable<T extends EntityThrowable> extends IEntity<T> {
IEntityLivingBase getThrower();
void kill();
}