public interface IProjectile
| Modifier and Type | Method and Description |
|---|---|
void |
enableEvents()
For scripters to enable projectile events in their current scripting container
|
int |
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 this
|
void |
setItem(IItemStack item) |
IItemStack getItem()
void setItem(IItemStack item)
boolean getHasGravity()
void setHasGravity(boolean bo)
bo - Whether the arrow flies in a straight line or notint getAccuracy()
void setAccuracy(int accuracy)
void setHeading(IEntity entity)
void setHeading(double x,
double y,
double z)
void setHeading(float yaw,
float pitch)
yaw - Rotation yawpitch - Rotation pitchIEntity getThrower()
void enableEvents()