mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-15 20:44:44 +00:00
Added IProjectile and its events.
This commit is contained in:
1 parent
21b4d91fc7
commit
c3a023021d
1 file changed
+47
@@ -0,0 +1,47 @@
|
||||
package noppes.npcs.api.entity;
|
||||
|
||||
import noppes.npcs.api.item.IItemStack;
|
||||
|
||||
public interface IProjectile {
|
||||
|
||||
public IItemStack getItem();
|
||||
|
||||
public void setItem(IItemStack item);
|
||||
|
||||
/**
|
||||
* @return Returns whether the arrow flies in a straight line or not
|
||||
*/
|
||||
public boolean getHasGravity();
|
||||
|
||||
/**
|
||||
* @param bo Whether the arrow flies in a straight line or not
|
||||
*/
|
||||
public void setHasGravity(boolean bo);
|
||||
|
||||
public int getAccuracy();
|
||||
|
||||
public void setAccuracy(int accuracy);
|
||||
|
||||
/**
|
||||
* Entity where the projectile heads towards
|
||||
* The position for the projectile needs to have been set for this
|
||||
*/
|
||||
public void setHeading(IEntity entity);
|
||||
|
||||
/**
|
||||
* Position where the projectile heads towards.
|
||||
* The position for the projectile needs to have been set for this
|
||||
*/
|
||||
public void setHeading(double x, double y, double z);
|
||||
|
||||
/**
|
||||
* @param yaw Rotation yaw
|
||||
* @param pitch Rotation pitch
|
||||
*/
|
||||
public void setHeading(float yaw, float pitch);
|
||||
|
||||
/**
|
||||
* For scripters to enable projectile events in their current scripting container
|
||||
*/
|
||||
public void enableEvents();
|
||||
}
|
||||
Reference in new issue
Block a user