Package noppes.npcs.api.entity
Interface IProjectile
-
public interface IProjectile
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidenableEvents()For scripters to enable projectile events in their current scripting containerintgetAccuracy()booleangetHasGravity()IItemStackgetItem()IEntitygetThrower()voidsetAccuracy(int accuracy)voidsetHasGravity(boolean bo)voidsetHeading(double x, double y, double z)Position where the projectile heads towards.voidsetHeading(float yaw, float pitch)voidsetHeading(IEntity entity)Entity where the projectile heads towards The position for the projectile needs to have been set for thisvoidsetItem(IItemStack item)
-
-
-
Method Detail
-
getItem
IItemStack getItem()
-
setItem
void setItem(IItemStack item)
-
getHasGravity
boolean getHasGravity()
- Returns:
- Returns whether the arrow flies in a straight line or not
-
setHasGravity
void setHasGravity(boolean bo)
- Parameters:
bo- Whether the arrow flies in a straight line or not
-
getAccuracy
int getAccuracy()
-
setAccuracy
void setAccuracy(int accuracy)
-
setHeading
void setHeading(IEntity entity)
Entity where the projectile heads towards The position for the projectile needs to have been set for this
-
setHeading
void setHeading(double x, double y, double z)Position where the projectile heads towards. The position for the projectile needs to have been set for this
-
setHeading
void setHeading(float yaw, float pitch)- Parameters:
yaw- Rotation yawpitch- Rotation pitch
-
getThrower
IEntity getThrower()
-
enableEvents
void enableEvents()
For scripters to enable projectile events in their current scripting container
-
-