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 Details

    • 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 yaw
      pitch - Rotation pitch
    • enableEvents

      void enableEvents()
      For scripters to enable projectile events in their current scripting container