Package noppes.npcs.api.entity
Interface IProjectile
-
public interface IProjectile
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
enableEvents()
For scripters to enable projectile events in their current scripting containerint
getAccuracy()
boolean
getHasGravity()
IItemStack
getItem()
IEntity
getThrower()
void
setAccuracy(int accuracy)
void
setHasGravity(boolean bo)
void
setHeading(double x, double y, double z)
Position where the projectile heads towards.void
setHeading(float yaw, float pitch)
void
setHeading(IEntity entity)
Entity where the projectile heads towards The position for the projectile needs to have been set for thisvoid
setItem(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
-
-