mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-15 16:04:44 +00:00
IArrow, IFishHook, IThrowable
This commit is contained in:
1 parent
a58b6383aa
commit
b60245f21a
3 files changed
+47
No files matched your search
@@ -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();
|
||||
}
|
||||
Reference in new issue
Block a user