Interface IProjectile


  • public interface IProjectile
    • Method Detail

      • 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