Package noppes.npcs.api.entity
Interface IProjectile<T extends net.minecraft.entity.projectile.EntityThrowable>
- All Superinterfaces:
IEntity<T>
,IThrowable<T>
public interface IProjectile<T extends net.minecraft.entity.projectile.EntityThrowable> extends IThrowable<T>
-
Method Summary
Modifier and Type Method Description void
enableEvents()
For scripters to enable projectile events in their current scripting containerint
getAccuracy()
boolean
getHasGravity()
IItemStack
getItem()
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)
Methods inherited from interface noppes.npcs.api.entity.IEntity
addRider, addTag, clearRiders, damage, despawn, dropItem, extinguish, generateNewUUID, getAge, getAllRiders, getBlockX, getBlockY, getBlockZ, getEntityName, getEntityNbt, getEyeHeight, getHeight, getMCEntity, getMotionX, getMotionY, getMotionZ, getMount, getName, getNbt, getPitch, getPos, getRiders, getRotation, getStoreddata, getTags, getTempdata, getType, getTypeName, getUUID, getWidth, getWorld, getX, getY, getZ, hasCustomName, hasTag, inFire, inLava, inWater, isAlive, isBurning, isSneaking, isSprinting, kill, knockback, playAnimation, rayTraceBlock, rayTraceEntities, removeTag, setBurning, setEntityNbt, setMotionX, setMotionY, setMotionZ, setMount, setName, setPitch, setPos, setPosition, setRotation, setX, setY, setZ, spawn, storeAsClone, typeOf
-
Method Details
-
getItem
IItemStack getItem() -
setItem
-
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
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
-
enableEvents
void enableEvents()For scripters to enable projectile events in their current scripting container
-