Package noppes.npcs.api.entity
Interface IProjectile<T extends net.minecraft.world.entity.projectile.ThrowableProjectile>
- All Superinterfaces:
IEntity<T>,IThrowable<T>
public interface IProjectile<T extends net.minecraft.world.entity.projectile.ThrowableProjectile>
extends IThrowable<T>
-
Method Summary
Modifier and TypeMethodDescriptionvoidFor scripters to enable projectile events in their current scripting containerintbooleangetItem()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) Methods inherited from interface noppes.npcs.api.entity.IEntity
addRider, addTag, clearRiders, damage, 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
-